Class PerformativeEnvelope<V>

java.lang.Object
org.apache.qpid.protonj2.engine.PerformativeEnvelope<V>
Type Parameters:
V - The type of body that this PerformativeEnvelope will carry.
Direct Known Subclasses:
HeaderEnvelope, IncomingAMQPEnvelope, OutgoingAMQPEnvelope, SASLEnvelope

public abstract class PerformativeEnvelope<V> extends Object
Base class for envelope types that travel through the engine.
  • Constructor Details

    • PerformativeEnvelope

      protected PerformativeEnvelope(byte frameType)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object