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
-
public final class EmptyEnvelope extends IncomingAMQPEnvelope
An empty envelope which can be used to drive transport activity when idle.
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyEnvelope
INSTANCE
The singleton instance of theEmptyEnvelope
type.-
Fields inherited from class org.apache.qpid.protonj2.engine.IncomingAMQPEnvelope
AMQP_FRAME_TYPE
-
-
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
java.lang.String
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 Detail
-
INSTANCE
public static final EmptyEnvelope INSTANCE
The singleton instance of theEmptyEnvelope
type.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPerformativeEnvelope<Performative>
-
invoke
public <E> void invoke(Performative.PerformativeHandler<E> handler, E context)
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.
-
-