Interface Serializer<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_EVENT_SIZE
      The maximum event size, in bytes.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T deserialize​(java.nio.ByteBuffer serializedValue)
      Deserializes the given ByteBuffer into an event.
      java.nio.ByteBuffer serialize​(T value)
      Serializes the given event.
    • Field Detail

      • MAX_EVENT_SIZE

        static final int MAX_EVENT_SIZE
        The maximum event size, in bytes.
        See Also:
        Constant Field Values
    • Method Detail

      • serialize

        java.nio.ByteBuffer serialize​(T value)
        Serializes the given event.
        Parameters:
        value - The event to be serialized.
        Returns:
        The serialized form of the event. NOTE: buffers returned should not exceed MAX_EVENT_SIZE.
      • deserialize

        T deserialize​(java.nio.ByteBuffer serializedValue)
        Deserializes the given ByteBuffer into an event.
        Parameters:
        serializedValue - A event that has been previously serialized.
        Returns:
        The event object.