Package org.apache.qpid.protonj2.engine
Class IncomingAMQPEnvelope
java.lang.Object
org.apache.qpid.protonj2.engine.PerformativeEnvelope<Performative>
org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
- Direct Known Subclasses:
EmptyEnvelope
Frame object that carries an AMQP Performative
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
The AMQP Frame type marker value used when processing incoming frames. -
Method Summary
Modifier and TypeMethodDescription<E> void
invoke
(Performative.PerformativeHandler<E> handler, E context) Invoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelope
final void
release()
Used to release a Frame that was taken from a Frame pool in order to make it available for the next input operations.Methods inherited from class org.apache.qpid.protonj2.engine.PerformativeEnvelope
getBody, getChannel, getFrameType, getPayload, toString
-
Field Details
-
AMQP_FRAME_TYPE
public static final byte AMQP_FRAME_TYPEThe AMQP Frame type marker value used when processing incoming frames.- See Also:
-
-
Method Details
-
release
public final void release()Used to release a Frame that was taken from a Frame pool in order to make it available for the next input operations. Once called the contents of the Frame are invalid and cannot be used again inside the same context. -
invoke
Invoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelope
- Type Parameters:
E
- The type that thePerformative
handler expects for the context value.- Parameters:
handler
- The handler that should be used to process the current body value.context
- The context that should be passed along for the current event.
-