Class ProtonFrameLoggingHandler
java.lang.Object
org.apache.qpid.protonj2.engine.impl.ProtonFrameLoggingHandler
- All Implemented Interfaces:
EngineHandler
Handler that will log incoming and outgoing Frames
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handlerAdded
(EngineHandlerContext context) Called when the handler is successfully added to theEnginePipeline
and will later be initialized before use.void
handleRead
(EngineHandlerContext context, HeaderEnvelope envelope) Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.void
handleRead
(EngineHandlerContext context, IncomingAMQPEnvelope envelope) Handle the receipt of an incoming AMQP envelope based on the current state of this handler.void
handleRead
(EngineHandlerContext context, SASLEnvelope envelope) Handle the receipt of an incoming SASL performative based on the current state of this handler.void
handleWrite
(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 theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
void
handleWrite
(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 theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
void
handleWrite
(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 theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.qpid.protonj2.engine.EngineHandler
engineFailed, engineStarting, handleEngineStateChanged, handleRead, handlerRemoved, handleWrite
-
Constructor Details
-
ProtonFrameLoggingHandler
public ProtonFrameLoggingHandler()
-
-
Method Details
-
handlerAdded
Description copied from interface:EngineHandler
Called when the handler is successfully added to theEnginePipeline
and will later be initialized before use.- Specified by:
handlerAdded
in interfaceEngineHandler
- Parameters:
context
- The context that is assigned to this handler.
-
handleRead
Description copied from interface:EngineHandler
Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.- Specified by:
handleRead
in interfaceEngineHandler
- Parameters:
context
- The context for this handler which can be used to forward the event to the next handlerenvelope
- The AMQP Header envelope that wraps the received header instance.
-
handleRead
Description copied from interface:EngineHandler
Handle the receipt of an incoming SASL performative based on the current state of this handler.- Specified by:
handleRead
in interfaceEngineHandler
- Parameters:
context
- The context for this handler which can be used to forward the event to the next handlerenvelope
- The SASL envelope that wraps the receivedSaslPerformative
.
-
handleRead
Description copied from interface:EngineHandler
Handle the receipt of an incoming AMQP envelope based on the current state of this handler.- Specified by:
handleRead
in 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
.
-
handleWrite
Description copied from interface:EngineHandler
Handles write of AMQPHeader either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
- Specified by:
handleWrite
in interfaceEngineHandler
- Parameters:
context
- TheEngineHandlerContext
associated with thisEngineHandler
instance.envelope
- TheHeaderEnvelope
instance to write.
-
handleWrite
Description copied from interface:EngineHandler
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 theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
- Specified by:
handleWrite
in interfaceEngineHandler
- Parameters:
context
- TheEngineHandlerContext
associated with thisEngineHandler
instance.envelope
- TheOutgoingAMQPEnvelope
instance to write.
-
handleWrite
Description copied from interface:EngineHandler
Handles write of SaslPerformative either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBuffer
based API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)
- Specified by:
handleWrite
in interfaceEngineHandler
- Parameters:
context
- TheEngineHandlerContext
associated with thisEngineHandler
instance.envelope
- TheSASLEnvelope
instance to write.
-