Proton DotNet
|
Handler of engine events that is queued into the events pipeline. More...
Public Member Functions | |
void | HandlerAdded (IEngineHandlerContext context) |
Called when the handler is successfully added to the engine pipeline and will later be initialized before use. | |
void | HandlerRemoved (IEngineHandlerContext context) |
Called when the handler is successfully removed from the engine pipeline and will not be invoked again or ever. | |
void | EngineStarting (IEngineHandlerContext context) |
Called when the engine is started to allow handlers to prepare for use based on the configuration state at start of the engine. A handler can fail the engine start by throwing an exception. | |
void | HandleEngineStateChanged (IEngineHandlerContext context) |
Called when the engine state has changed and handlers may need to update their internal state to respond to the change or prompt some new work based on the change, e.g state changes from not writable to writable. | |
void | EngineFailed (IEngineHandlerContext context, EngineFailedException failure) |
Called when the engine has transitioned to a failed state and cannot process any additional input or output. The handler can free and resources used for normal operations at this point as the engine is now considered shutdown. | |
void | HandleRead (IEngineHandlerContext context, IProtonBuffer buffer) |
Handle the read of new incoming bytes from a remote sender. The handler should generally decode these bytes into an AMQP Performative or SASL Performative based on the current state of the connection and the handler in question. | |
void | HandleRead (IEngineHandlerContext context, HeaderEnvelope envelope) |
Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler. | |
void | HandleRead (IEngineHandlerContext context, SaslEnvelope envelope) |
Handle the receipt of an incoming SASL performative envelope based on the current state of this handler. | |
void | HandleRead (IEngineHandlerContext context, IncomingAmqpEnvelope envelope) |
Handle the receipt of an incoming AMQP performative envelope based on the current state of this handler. | |
void | HandleWrite (IEngineHandlerContext context, HeaderEnvelope envelope) |
Handles write of AMQP Header either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API. | |
void | HandleWrite (IEngineHandlerContext context, SaslEnvelope envelope) |
Handles write of SASL performative either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API. | |
void | HandleWrite (IEngineHandlerContext context, OutgoingAmqpEnvelope envelope) |
Handles write of AMQP performative either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API. | |
void | HandleWrite (IEngineHandlerContext context, IProtonBuffer buffer, Action ioComplete) |
Handler of engine events that is queued into the events pipeline.
|
inline |
Called when the engine has transitioned to a failed state and cannot process any additional input or output. The handler can free and resources used for normal operations at this point as the engine is now considered shutdown.
context | The handler context that is assigned to this handler |
failure | The exception that caused the engine to fail |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameDecodingHandler, and Apache.Qpid.Proton.Engine.Implementation.ProtonPerformativeHandler.
|
inline |
Called when the engine is started to allow handlers to prepare for use based on the configuration state at start of the engine. A handler can fail the engine start by throwing an exception.
context | The handler context that is assigned to this handler |
Implemented in Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Called when the engine state has changed and handlers may need to update their internal state to respond to the change or prompt some new work based on the change, e.g state changes from not writable to writable.
context | The handler context that is assigned to this handler |
|
inline |
Called when the handler is successfully added to the engine pipeline and will later be initialized before use.
context | The handler context that is assigned to this handler |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameDecodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameEncodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonPerformativeHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.
context | The handler context that is assigned to this handler |
envelope | The envelope that was read |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonPerformativeHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Handle the receipt of an incoming AMQP performative envelope based on the current state of this handler.
context | The handler context that is assigned to this handler |
envelope | The envelope that was read |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonPerformativeHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Handle the read of new incoming bytes from a remote sender. The handler should generally decode these bytes into an AMQP Performative or SASL Performative based on the current state of the connection and the handler in question.
context | The handler context that is assigned to this handler |
buffer | The buffer containing the incoming bytes read. |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameDecodingHandler.
|
inline |
Handle the receipt of an incoming SASL performative envelope based on the current state of this handler.
context | The handler context that is assigned to this handler |
envelope | The envelope that was read |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameDecodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Called when the handler is successfully removed from the engine pipeline and will not be invoked again or ever.
context | The handler context that is assigned to this handler |
Implemented in Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Handles write of AMQP Header either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API.
context | The handler context that is assigned to this handler |
envelope | The envelope that is to be written |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameEncodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
context | The handler context that is assigned to this handler |
buffer | The buffer to be written into the IO layer |
ioComplete | The delegate to invoke when the IO operation is complete |
|
inline |
Handles write of AMQP performative either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API.
context | The handler context that is assigned to this handler |
envelope | The envelope that is to be written |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameEncodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.
|
inline |
Handles write of SASL performative either by directly writing it to the output target or by converting it to bytes and firing a write using the buffer based write API.
context | The handler context that is assigned to this handler |
envelope | The envelope that is to be written |
Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonFrameDecodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameEncodingHandler, Apache.Qpid.Proton.Engine.Implementation.ProtonFrameLoggingHandler, and Apache.Qpid.Proton.Engine.Implementation.Sasl.ProtonSaslHandler.