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
FieldsModifier and TypeFieldDescriptionstatic final EmptyEnvelopeThe singleton instance of theEmptyEnvelopetype.Fields inherited from class org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
AMQP_FRAME_TYPE -
Method Summary
Modifier and TypeMethodDescription<E> voidinvoke(Performative.PerformativeHandler<E> handler, E context) Invoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelopetoString()Methods inherited from class org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
releaseMethods inherited from class org.apache.qpid.protonj2.engine.PerformativeEnvelope
getBody, getChannel, getFrameType, getPayload
-
Field Details
-
INSTANCE
The singleton instance of theEmptyEnvelopetype.
-
-
Method Details
-
toString
- Overrides:
toStringin classPerformativeEnvelope<Performative>
-
invoke
Description copied from class:IncomingAMQPEnvelopeInvoke the correct PerformativeHandler event based on the body of thisIncomingAMQPEnvelope- Overrides:
invokein classIncomingAMQPEnvelope- Type Parameters:
E- The type that thePerformativehandler 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.
-