Class EventPositionImpl

    • Method Detail

      • fromOffset

        public static EventPositionImpl fromOffset​(String offset)
        Description copied from interface: EventPosition
        Creates a position at the given offset. The specified event will not be included. Instead, the next event is returned.
        Parameters:
        offset - is the byte offset of the event.
        Returns:
        An EventPosition object.
      • fromOffset

        public static EventPositionImpl fromOffset​(String offset,
                                                   boolean inclusiveFlag)
        Description copied from interface: EventPosition
        Creates a position at the given offset.
        Parameters:
        offset - is the byte offset of the event.
        inclusiveFlag - will include the specified event when set to true; otherwise, the next event is returned.
        Returns:
        An EventPosition object.
      • fromSequenceNumber

        public static EventPositionImpl fromSequenceNumber​(Long sequenceNumber)
        Description copied from interface: EventPosition
        Creates a position at the given sequence number. The specified event will not be included. Instead, the next event is returned.
        Parameters:
        sequenceNumber - is the sequence number of the event.
        Returns:
        An EventPosition object.
      • fromSequenceNumber

        public static EventPositionImpl fromSequenceNumber​(Long sequenceNumber,
                                                           boolean inclusiveFlag)
        Description copied from interface: EventPosition
        Creates a position at the given sequence number. The specified event will not be included. Instead, the next event is returned.
        Parameters:
        sequenceNumber - is the sequence number of the event.
        inclusiveFlag - will include the specified event when set to true; otherwise, the next event is returned.
        Returns:
        An EventPosition object.
      • fromStartOfStream

        public static EventPositionImpl fromStartOfStream()
        Description copied from interface: EventPosition
        Returns the position for the start of a stream. Provide this position in receiver creation to start receiving from the first available event in the partition.
        Returns:
        An EventPosition set to the start of an Event Hubs stream.
      • fromEndOfStream

        public static EventPositionImpl fromEndOfStream()
        Description copied from interface: EventPosition
        Returns the position for the end of a stream. Provide this position in receiver creation to start receiving from the next available event in the partition after the receiver is created.
        Returns:
        An EventPosition set to the end of an Event Hubs stream.
      • getInclusiveFlag

        public boolean getInclusiveFlag()
        Description copied from interface: EventPosition
        Gets the inclusive value.

        Specified by:
        getInclusiveFlag in interface EventPosition
        Returns:
        the inclusive value.