Class ProtonPerformativeHandler
java.lang.Object
org.apache.qpid.protonj2.engine.impl.ProtonPerformativeHandler
- All Implemented Interfaces:
- EngineHandler,- AMQPHeader.HeaderHandler<EngineHandlerContext>,- Performative.PerformativeHandler<EngineHandlerContext>
public class ProtonPerformativeHandler
extends Object
implements EngineHandler, AMQPHeader.HeaderHandler<EngineHandlerContext>, Performative.PerformativeHandler<EngineHandlerContext>
Transport Handler that forwards the incoming Performatives to the associated Connection
 as well as any error encountered during the Transport processing.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidengineFailed(EngineHandlerContext context, EngineFailedException failure) Called when the engine has transitioned to a failed state and cannot process any additional input or output.voidhandleAMQPHeader(AMQPHeader header, EngineHandlerContext context) voidhandleAttach(Attach attach, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleBegin(Begin begin, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleClose(Close close, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleDetach(Detach detach, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleDisposition(Disposition disposition, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleEnd(End end, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleFlow(Flow flow, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandleOpen(Open open, ProtonBuffer payload, int channel, EngineHandlerContext context) voidhandlerAdded(EngineHandlerContext context) Called when the handler is successfully added to theEnginePipelineand will later be initialized before use.voidhandleRead(EngineHandlerContext context, HeaderEnvelope header) Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.voidhandleRead(EngineHandlerContext context, IncomingAMQPEnvelope envelope) Handle the receipt of an incoming AMQP envelope based on the current state of this handler.voidhandleSASLHeader(AMQPHeader header, EngineHandlerContext context) voidhandleTransfer(Transfer transfer, ProtonBuffer payload, int channel, EngineHandlerContext context) 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.EngineHandlerengineStarting, handleEngineStateChanged, handleRead, handleRead, handlerRemoved, handleWrite, handleWrite, handleWrite, handleWrite
- 
Constructor Details- 
ProtonPerformativeHandlerpublic ProtonPerformativeHandler()
 
- 
- 
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.
 
- 
handleReadDescription copied from interface:EngineHandlerHandle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.- Specified by:
- handleReadin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- header- The AMQP Header envelope that wraps the received header instance.
 
- 
handleReadDescription copied from interface:EngineHandlerHandle the receipt of an incoming AMQP envelope based on the current state of this handler.- Specified by:
- handleReadin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- envelope- The AMQP envelope that wraps the received- Performative.
 
- 
engineFailedDescription copied from interface:EngineHandlerCalled 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.- Specified by:
- engineFailedin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- failure- The failure that triggered the engine to cease operations.
 
- 
handleAMQPHeader- Specified by:
- handleAMQPHeaderin interface- AMQPHeader.HeaderHandler<EngineHandlerContext>
 
- 
handleSASLHeader- Specified by:
- handleSASLHeaderin interface- AMQPHeader.HeaderHandler<EngineHandlerContext>
 
- 
handleOpen- Specified by:
- handleOpenin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleBeginpublic void handleBegin(Begin begin, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleBeginin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleAttachpublic void handleAttach(Attach attach, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleAttachin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleFlow- Specified by:
- handleFlowin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleTransferpublic void handleTransfer(Transfer transfer, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleTransferin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleDispositionpublic void handleDisposition(Disposition disposition, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleDispositionin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleDetachpublic void handleDetach(Detach detach, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleDetachin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleEnd- Specified by:
- handleEndin interface- Performative.PerformativeHandler<EngineHandlerContext>
 
- 
handleClosepublic void handleClose(Close close, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
- handleClosein interface- Performative.PerformativeHandler<EngineHandlerContext>
 
 
-