Class MapMessage<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable

    public class MapMessage<K,​V>
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MapMessage

        public MapMessage()
    • Method Detail

      • toBytes

        public static <K,​V> byte[] toBytes​(MapMessage<K,​V> message)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • fromBytes

        public static <K,​V> MapMessage<K,​V> fromBytes​(byte[] rep)
                                                           throws java.io.IOException,
                                                                  java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • getKey

        public K getKey()
      • getValue

        public V getValue()
      • setKey

        public void setKey​(java.lang.Object key)
      • setValue

        public void setValue​(java.lang.Object value)
      • setKeySet

        public void setKeySet​(java.lang.Object keySet)
      • setSize

        public void setSize​(int size)
      • getKeySet

        public java.util.Set<K> getKeySet()
      • getSize

        public int getSize()