Proton DotNet
|
Default event loop implementation. More...
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. | |
![]() |
Default event loop implementation.
|
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.
action | The action to be performed |
ArgumentNullException | If the provided action is null |
RejectedExecutionException | If the action is rejected |
Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.
|
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.
|
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.
waitTime | The time to wait for complete shutdown |
Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.
|
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.
|
get |
Returns true if the service has been shutdown.
Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.
|
get |
Returns true if a service that was shutdown has completed all shutdown operations.
Implements Apache.Qpid.Proton.Client.Concurrent.IEventLoop.