Class RouterKey

  • All Implemented Interfaces:
    java.lang.Comparable<RouterKey>

    public class RouterKey
    extends java.lang.Object
    implements java.lang.Comparable<RouterKey>
    RouterKey encapsulates the required information for a key in a router request.
    • Constructor Detail

      • RouterKey

        public RouterKey​(byte[] key)
      • RouterKey

        public RouterKey​(java.nio.ByteBuffer key)
    • Method Detail

      • fromString

        public static RouterKey fromString​(java.lang.String s)
      • fromBase64

        public static RouterKey fromBase64​(java.lang.String s)
      • base64Encoded

        public java.lang.String base64Encoded()
      • getKeyBuffer

        public java.nio.ByteBuffer getKeyBuffer()
      • getKeySize

        public int getKeySize()
      • compareTo

        public int compareTo​(RouterKey other)
        Specified by:
        compareTo in interface java.lang.Comparable<RouterKey>
      • toString

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • setPartitionId

        public void setPartitionId​(int partitionId)
      • getPartitionId

        public int getPartitionId()