EventPosition.fromSequenceNumber 方法

定义

重载

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.

fromSequenceNumber(Long sequenceNumber)

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

public static EventPosition fromSequenceNumber(Long sequenceNumber)

参数

sequenceNumber
Long

is the sequence number of the event.

返回

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.

public static EventPosition fromSequenceNumber(Long sequenceNumber, boolean inclusiveFlag)

参数

sequenceNumber
Long

is the sequence number of the event.

inclusiveFlag
boolean

will include the specified event when set to true; otherwise, the next event is returned.

返回

适用于