Class ProtonFrameEncodingHandler
java.lang.Object
org.apache.qpid.protonj2.engine.impl.ProtonFrameEncodingHandler
- All Implemented Interfaces:
- EngineHandler
Handler that encodes performatives into properly formed frames for IO
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final byteFrame type indicator for AMQP protocol frames.static final byteFrame type indicator for SASL protocol frames.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidengineStarting(EngineHandlerContext context) Called when the engine is started to allow handlers to prepare for use based on the configuration state at start of the engine.voidhandlerAdded(EngineHandlerContext context) Called when the handler is successfully added to theEnginePipelineand will later be initialized before use.voidhandleWrite(EngineHandlerContext context, HeaderEnvelope envelope) Handles write of AMQPHeader either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)voidhandleWrite(EngineHandlerContext context, OutgoingAMQPEnvelope envelope) Handles write of AMQP performative envelope either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)voidhandleWrite(EngineHandlerContext context, SASLEnvelope envelope) Handles write of SaslPerformative either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.engine.EngineHandlerengineFailed, handleEngineStateChanged, handleRead, handleRead, handleRead, handleRead, handlerRemoved, handleWrite
- 
Field Details- 
AMQP_FRAME_TYPEpublic static final byte AMQP_FRAME_TYPEFrame type indicator for AMQP protocol frames.- See Also:
 
- 
SASL_FRAME_TYPEpublic static final byte SASL_FRAME_TYPEFrame type indicator for SASL protocol frames.- See Also:
 
 
- 
- 
Constructor Details- 
ProtonFrameEncodingHandlerpublic ProtonFrameEncodingHandler()
 
- 
- 
Method Details- 
handlerAddedDescription copied from interface:EngineHandlerCalled when the handler is successfully added to theEnginePipelineand will later be initialized before use.- Specified by:
- handlerAddedin interface- EngineHandler
- Parameters:
- context- The context that is assigned to this handler.
 
- 
engineStartingDescription copied from interface:EngineHandlerCalled 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.- Specified by:
- engineStartingin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of AMQPHeader either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- envelope- The- HeaderEnvelopeinstance to write.
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of SaslPerformative either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- envelope- The- SASLEnvelopeinstance to write.
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of AMQP performative envelope either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- envelope- The- OutgoingAMQPEnvelopeinstance to write.
 
 
-