Class Type


  • public class Type
    extends Object
    Defines a type identifier for sending messages over the wire. Messages implementing this trait specify a type and must be [`Writeable`].
    • Method Detail

      • type_id

        public short type_id()
        Returns the type identifying the message payload.
      • debug_str

        public String debug_str()
        Return a human-readable "debug" string describing this object
      • write

        public byte[] write()
        Serialize the object into a byte array
      • clone

        public Type clone()
        Creates a copy of a Type
        Overrides:
        clone in class Object