Package org.jgroups

Class Header

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int HDR_OVERHEAD  
    • Constructor Summary

      Constructors 
      Constructor Description
      Header()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int size()
      To be implemented by subclasses.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.io.Externalizable

        readExternal, writeExternal
    • Constructor Detail

      • Header

        public Header()
    • Method Detail

      • size

        public int size()
        To be implemented by subclasses. Return the size of this object for the serialized version of it. I.e. how many bytes this object takes when flattened into a buffer. This may be different for each instance, or can be the same. This may also just be an estimation. E.g. FRAG uses it on Message to determine whether or not to fragment the message. Fragmentation itself will be accurate, because the entire message will actually be serialized into a byte buffer, so we can determine the exact size.
      • toString

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