Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Client.Concurrent.IEventLoop Interface Reference

Single threaded event processing loop interface. Implementations accept queue'd actions to be processed within the event loop in serial fashion. More...

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

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.
 

Detailed Description

Single threaded event processing loop interface. Implementations accept queue'd actions to be processed within the event loop in serial fashion.

Member Function Documentation

◆ Execute()

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.

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

Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.

◆ Shutdown()

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.

◆ WaitForTermination()

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.

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

Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.

Property Documentation

◆ InEventLoop

bool Apache.Qpid.Proton.Client.Concurrent.IEventLoop.InEventLoop
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.

◆ IsShutdown

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

Returns true if the service has been shutdown.

Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.

◆ IsTerminated

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

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

Implemented in Apache.Qpid.Proton.Client.Concurrent.DefaultEventLoop.


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