Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop Class Referencesealed

Default event loop implementation. More...

Inheritance diagram for Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop:
Apache.Qpid.Proton.Client.Concurrent.IEventLoop

Public Member Functions

void Shutdown ()
 Requests an orderly shut down of the service whereby previously submitted tasks will still be allowed to execute but any new tasks will be rejected.
 
bool WaitForTermination (TimeSpan waitTime)
 Allows a caller to wait the given time span for the service to completely shut down and terminate all service operations. If the wait return before the service has fully shutdown it will return false.
 
void Execute (Action action)
 Execute some action at a future time in order of submission. The event loop implementation must guarantee that events never execute concurrently or out of order.
 

Properties

bool InEventLoop [get]
 Returns if the code currently executing is operating within the context of the event loop thread or not.
 
bool IsShutdown [get]
 Returns true if the service has been shutdown.
 
bool IsTerminated [get]
 Returns true if a service that was shutdown has completed all shutdown operations.
 
- Properties inherited from Apache.Qpid.Proton.Client.Concurrent.IEventLoop

Detailed Description

Default event loop implementation.

Member Function Documentation

◆ Execute()

void Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.Execute ( Action  action)
inline

Execute some action at a future time in order of submission. The event loop implementation must guarantee that events never execute concurrently or out of order.

Parameters
actionThe action to be performed
Exceptions
ArgumentNullExceptionIf the provided action is null
RejectedExecutionExceptionIf the action is rejected

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.

◆ Shutdown()

void Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.Shutdown ( )
inline

Requests an orderly shut down of the service whereby previously submitted tasks will still be allowed to execute but any new tasks will be rejected.

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.

◆ WaitForTermination()

bool Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.WaitForTermination ( TimeSpan  waitTime)
inline

Allows a caller to wait the given time span for the service to completely shut down and terminate all service operations. If the wait return before the service has fully shutdown it will return false.

Parameters
waitTimeThe time to wait for complete shutdown
Returns
true if the service fully shut down, otherwise returns false.

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.

Property Documentation

◆ InEventLoop

bool Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.InEventLoop
get

Returns if the code currently executing is operating within the context of the event loop thread or not.

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.

◆ IsShutdown

bool Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.IsShutdown
get

Returns true if the service has been shutdown.

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.

◆ IsTerminated

bool Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.IsTerminated
get

Returns true if a service that was shutdown has completed all shutdown operations.

Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.


The documentation for this class was generated from the following file: