EventPosition 接口

定义

Defines a position of an EventData in the event hub partition. The position can be an Offset, Sequence Number, or EnqueuedTime.

public interface EventPosition

方法

fromEndOfStream()

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.

fromEnqueuedTime(Instant dateTime)

Creates a position at the given Instant.

fromOffset(String offset)

Creates a position at the given offset. The specified event will not be included. Instead, the next event is returned.

fromOffset(String offset, boolean inclusiveFlag)

Creates a position at the given offset.

fromSequenceNumber(Long sequenceNumber)

Creates a position at the given sequence number. The specified event will not be included. Instead, the next event is returned.

fromSequenceNumber(Long sequenceNumber, boolean inclusiveFlag)

Creates a position at the given sequence number. The specified event will not be included. Instead, the next event is returned.

fromStartOfStream()

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.

getEnqueuedTime()

Gets the enqueued time.

getInclusiveFlag()

Gets the inclusive value.

getOffset()

Gets the offset.

getSequenceNumber()

Gets the sequence number.

适用于