Proton DotNet
|
Single threaded event processing loop interface. Implementations accept queue'd actions to be processed within the event loop in serial fashion. More...
Public Member Functions | |
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. | |
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 | 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. | |
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. | |
Single threaded event processing loop interface. Implementations accept queue'd actions to be processed within the event loop in serial fashion.
void Apache.Qpid.Proton.Client.Concurrent.IEventLoop.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.
action | The action to be performed |
ArgumentNullException | If the provided action is null |
RejectedExecutionException | If the action is rejected |
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.
void Apache.Qpid.Proton.Client.Concurrent.IEventLoop.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.
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.
bool Apache.Qpid.Proton.Client.Concurrent.IEventLoop.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.
waitTime | The time to wait for complete shutdown |
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.
|
get |
Returns if the code currently executing is operating within the context of the event loop thread or not.
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.
|
get |
Returns true if the service has been shutdown.
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.
|
get |
Returns true if a service that was shutdown has completed all shutdown operations.
Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.