Class KeyWithChunkingSuffixSerializer


  • public class KeyWithChunkingSuffixSerializer
    extends java.lang.Object
    • Field Detail

      • IGNORED_TOPIC_NAME

        public static final java.lang.String IGNORED_TOPIC_NAME
        See Also:
        Constant Field Values
      • NON_CHUNK_KEY_SUFFIX

        public static final ChunkedKeySuffix NON_CHUNK_KEY_SUFFIX
    • Constructor Detail

      • KeyWithChunkingSuffixSerializer

        public KeyWithChunkingSuffixSerializer()
    • Method Detail

      • serializeChunkedKey

        public java.nio.ByteBuffer serializeChunkedKey​(byte[] key,
                                                       ChunkedKeySuffix chunkedKeySuffix)
        Returns:
        an exactly-sized ByteBuffer containing the key appended by the suffix
      • serializeNonChunkedKeyAsByteBuffer

        public java.nio.ByteBuffer serializeNonChunkedKeyAsByteBuffer​(byte[] key)
        Returns:
        an exactly-sized ByteBuffer containing the key appended by the standard suffix for non-chunked keys
      • serializeNonChunkedKey

        public byte[] serializeNonChunkedKey​(byte[] key)
      • serializeNonChunkedKey

        public java.nio.ByteBuffer serializeNonChunkedKey​(java.nio.ByteBuffer key)