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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.engine.EngineHandler
engineStarting, handleEngineStateChanged, handleRead, handleRead, handlerRemoved, handleWrite, handleWrite, handleWrite, handleWrite
-
Constructor Details
-
ProtonPerformativeHandler
public ProtonPerformativeHandler()
-
-
Method Details
-
handlerAdded
Description copied from interface:EngineHandlerCalled when the handler is successfully added to theEnginePipelineand will later be initialized before use.- Specified by:
handlerAddedin interfaceEngineHandler- Parameters:
context- The context that is assigned to this handler.
-
handleRead
Description 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 interfaceEngineHandler- Parameters:
context- The context for this handler which can be used to forward the event to the next handlerheader- The AMQP Header envelope that wraps the received header instance.
-
handleRead
Description copied from interface:EngineHandlerHandle the receipt of an incoming AMQP envelope based on the current state of this handler.- Specified by:
handleReadin interfaceEngineHandler- Parameters:
context- The context for this handler which can be used to forward the event to the next handlerenvelope- The AMQP envelope that wraps the receivedPerformative.
-
engineFailed
Description 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 interfaceEngineHandler- Parameters:
context- The context for this handler which can be used to forward the event to the next handlerfailure- The failure that triggered the engine to cease operations.
-
handleAMQPHeader
- Specified by:
handleAMQPHeaderin interfaceAMQPHeader.HeaderHandler<EngineHandlerContext>
-
handleSASLHeader
- Specified by:
handleSASLHeaderin interfaceAMQPHeader.HeaderHandler<EngineHandlerContext>
-
handleOpen
- Specified by:
handleOpenin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleBegin
public void handleBegin(Begin begin, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleBeginin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleAttach
public void handleAttach(Attach attach, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleAttachin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleFlow
- Specified by:
handleFlowin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleTransfer
public void handleTransfer(Transfer transfer, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleTransferin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleDisposition
public void handleDisposition(Disposition disposition, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleDispositionin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleDetach
public void handleDetach(Detach detach, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleDetachin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleEnd
- Specified by:
handleEndin interfacePerformative.PerformativeHandler<EngineHandlerContext>
-
handleClose
public void handleClose(Close close, ProtonBuffer payload, int channel, EngineHandlerContext context) - Specified by:
handleClosein interfacePerformative.PerformativeHandler<EngineHandlerContext>
-