Class EventPointerImpl

  • All Implemented Interfaces:
    EventPointer

    public class EventPointerImpl
    extends EventPointerInternal
    Implementation of the EventPointer interface. We use an EventPointerInternal abstract class as an intermediate class to make pointer instances opaque.
    • Method Detail

      • asImpl

        public EventPointerInternal asImpl()
        Description copied from interface: EventPointer
        Used internally. Do not call.
        Returns:
        Implementation of EventPointer interface
      • fromString

        public static EventPointer fromString​(java.lang.String eventPointer)
      • toString

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

        public java.nio.ByteBuffer toBytes()
        Description copied from interface: EventPointer
        Serializes the Event pointer to a compact binary form.
        Returns:
        A binary representation of the event pointer.
      • fromBytes

        public static EventPointerInternal fromBytes​(java.nio.ByteBuffer data)
        Description copied from interface: EventPointer
        Deserializes the event pointer from its serialized from obtained from calling EventPointer.toBytes().
        Parameters:
        data - A serialized event pointer.
        Returns:
        The event pointer object.
      • builder

        public static io.pravega.client.stream.impl.EventPointerImpl.EventPointerBuilder builder()
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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