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
public class IncomingAMQPEnvelope extends PerformativeEnvelope<Performative>
Frame object that carries an AMQP Performative
-
-
Field Summary
Fields Modifier and Type Field Description static byte
AMQP_FRAME_TYPE
The AMQP Frame type marker value used when processing incoming frames.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> void
invoke(Performative.PerformativeHandler<E> handler, E context)
Invoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelope
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 Detail
-
AMQP_FRAME_TYPE
public static final byte AMQP_FRAME_TYPE
The AMQP Frame type marker value used when processing incoming frames.- See Also:
- Constant Field Values
-
-
Method Detail
-
release
public 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
public <E> void invoke(Performative.PerformativeHandler<E> handler, E context)
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.
-
-