Package org.apache.qpid.protonj2.engine
Interface EngineHandlerContext
- All Known Implementing Classes:
- ProtonEngineHandlerContext
public interface EngineHandlerContext
Context provided to EngineHandler events to allow further event propagation
- 
Method SummaryModifier and TypeMethodDescriptionengine()voidFires the engine starting event into the next handler in theEnginePipelinechain.voidFires the engine state changed event into the next handler in theEnginePipelinechain.voidfireFailed(EngineFailedException failure) Fires theEnginefailed event into the next handler in theEnginePipelinechain.voidfireRead(ProtonBuffer buffer) Fires a read of ProtonBuffer events into the previous handler in theEnginePipelinefor further processing.voidfireRead(HeaderEnvelope header) Fires a read of HeaderFrame events into the previous handler in theEnginePipelinefor further processing.voidfireRead(IncomingAMQPEnvelope envelope) Fires a read of IncomingProtocolFrame events into the previous handler in theEnginePipelinefor further processing.voidfireRead(SASLEnvelope envelope) Fires a read of SASL events into the previous handler in theEnginePipelinefor further processing.voidfireWrite(ProtonBuffer buffer, Runnable ioComplete) Fires a write of ProtonBuffer events into the next handler in theEnginePipelinefor further processing.voidfireWrite(HeaderEnvelope envelope) Fires a write of HeaderFrame events into the next handler in theEnginePipelinefor further processing.voidfireWrite(OutgoingAMQPEnvelope envelope) Fires a write ofOutgoingAMQPEnvelopeevents into the next handler in theEnginePipelinefor further processing.voidfireWrite(SASLEnvelope envelope) Fires a write ofSASLEnvelopeevents into the next handler in theEnginePipelinefor further processing.handler()name()
- 
Method Details- 
handlerEngineHandler handler()- Returns:
- the EngineHandlerthat is associated with the context.
 
- 
engineEngine engine()- Returns:
- the Enginewhere this handler is registered.
 
- 
nameString name()- Returns:
- the name that assigned to this EngineHandlerwhen added to theEnginePipeline.
 
- 
fireEngineStartingvoid fireEngineStarting()Fires the engine starting event into the next handler in theEnginePipelinechain.
- 
fireEngineStateChangedvoid fireEngineStateChanged()Fires the engine state changed event into the next handler in theEnginePipelinechain. The state change events occur after the engine starting event and generally signify that the engine has been shutdown normally.
- 
fireFailedFires theEnginefailed event into the next handler in theEnginePipelinechain.- Parameters:
- failure- The exception that describes the conditions under which the engine failed.
 
- 
fireReadFires a read of ProtonBuffer events into the previous handler in theEnginePipelinefor further processing.- Parameters:
- buffer- The- ProtonBufferthat carries the bytes read.
 
- 
fireReadFires a read of HeaderFrame events into the previous handler in theEnginePipelinefor further processing.- Parameters:
- header- The- HeaderEnvelopethat carries the header bytes read.
 
- 
fireReadFires a read of SASL events into the previous handler in theEnginePipelinefor further processing.- Parameters:
- envelope- The- SASLEnvelopethat carries the SASL performative read.
 
- 
fireReadFires a read of IncomingProtocolFrame events into the previous handler in theEnginePipelinefor further processing.- Parameters:
- envelope- The- IncomingAMQPEnvelopethat carries the AMQP performative read.
 
- 
fireWriteFires a write ofOutgoingAMQPEnvelopeevents into the next handler in theEnginePipelinefor further processing.- Parameters:
- envelope- The- OutgoingAMQPEnvelopethat carries the AMQP performative being written.
 
- 
fireWriteFires a write ofSASLEnvelopeevents into the next handler in theEnginePipelinefor further processing.- Parameters:
- envelope- The- SASLEnvelopethat carries the SASL performative being written.
 
- 
fireWriteFires a write of HeaderFrame events into the next handler in theEnginePipelinefor further processing.- Parameters:
- envelope- The- HeaderEnvelopethat carries the AMQP Header being written.
 
- 
fireWriteFires a write of ProtonBuffer events into the next handler in theEnginePipelinefor further processing.- Parameters:
- buffer- The- ProtonBufferthat carries the bytes being written.
- ioComplete- An optional- Runnablecallback that is signaled when the I/O completes successfully.
 
 
-