Package org.apache.qpid.protonj2.engine
Class EmptyEnvelope
java.lang.Object
org.apache.qpid.protonj2.engine.PerformativeEnvelope<Performative>
org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
org.apache.qpid.protonj2.engine.EmptyEnvelope
An empty envelope which can be used to drive transport activity when idle.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EmptyEnvelope
The singleton instance of theEmptyEnvelope
type.Fields inherited from class org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
AMQP_FRAME_TYPE
-
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
toString()
Methods inherited from class org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
release
Methods inherited from class org.apache.qpid.protonj2.engine.PerformativeEnvelope
getBody, getChannel, getFrameType, getPayload
-
Field Details
-
INSTANCE
The singleton instance of theEmptyEnvelope
type.
-
-
Method Details
-
toString
- Overrides:
toString
in classPerformativeEnvelope<Performative>
-
invoke
Description copied from class:IncomingAMQPEnvelope
Invoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelope
- Overrides:
invoke
in classIncomingAMQPEnvelope
- 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.
-