Class PubSubMessageHeader

  • All Implemented Interfaces:
    Measurable

    public class PubSubMessageHeader
    extends java.lang.Object
    implements Measurable
    A key-value pair that is associated with a message
    • Constructor Summary

      Constructors 
      Constructor Description
      PubSubMessageHeader​(java.lang.String key, byte[] value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object otherObj)  
      int getHeapSize()
      TODO: the following estimation doesn't consider the overhead of the internal structure.
      int hashCode()  
      java.lang.String key()  
      byte[] value()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PubSubMessageHeader

        public PubSubMessageHeader​(java.lang.String key,
                                   byte[] value)
    • Method Detail

      • key

        public java.lang.String key()
      • value

        public byte[] value()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object otherObj)
        Overrides:
        equals in class java.lang.Object
      • getHeapSize

        public int getHeapSize()
        TODO: the following estimation doesn't consider the overhead of the internal structure.
        Specified by:
        getHeapSize in interface Measurable