Package org.apache.qpid.protonj2.engine
Class PerformativeEnvelope<V>
- java.lang.Object
-
- org.apache.qpid.protonj2.engine.PerformativeEnvelope<V>
-
- Type Parameters:
V
- The type of body that thisPerformativeEnvelope
will carry.
- Direct Known Subclasses:
HeaderEnvelope
,IncomingAMQPEnvelope
,OutgoingAMQPEnvelope
,SASLEnvelope
public abstract class PerformativeEnvelope<V> extends java.lang.Object
Base class for envelope types that travel through the engine.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PerformativeEnvelope(byte frameType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getBody()
int
getChannel()
byte
getFrameType()
ProtonBuffer
getPayload()
java.lang.String
toString()
-
-
-
Method Detail
-
getBody
public V getBody()
- Returns:
- the decoded body of the performative that this envelope carries..
-
getChannel
public int getChannel()
- Returns:
- the channel that the wrapped body and payload was sent on
-
getFrameType
public byte getFrameType()
- Returns:
- the frame type that is assigned to this envelope
-
getPayload
public ProtonBuffer getPayload()
- Returns:
- the binary payload that was delivered with this envelope
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-