Class Message<H extends MessageHeaders,​B>

  • Type Parameters:
    H - message head type.
    B - message body type.

    public final class Message<H extends MessageHeaders,​B>
    extends java.lang.Object
    Generic message consisting of a message head and a message body.
    Since:
    5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private B body  
      private H head  
    • Constructor Summary

      Constructors 
      Constructor Description
      Message​(H head, B body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      B getBody()  
      H getHead()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Message

        public Message​(H head,
                       B body)
    • Method Detail

      • getHead

        public H getHead()
      • getBody

        public B getBody()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object