@PublicEvolving public final class CursorPosition extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CursorPosition.Type
The position type for reader to choose whether timestamp or message id as the start position.
|
Constructor and Description |
---|
CursorPosition(Long timestamp) |
CursorPosition(org.apache.pulsar.client.api.MessageId messageId) |
Modifier and Type | Method and Description |
---|---|
org.apache.pulsar.client.api.MessageId |
getMessageId() |
Long |
getTimestamp() |
CursorPosition.Type |
getType() |
String |
toString() |
public CursorPosition(org.apache.pulsar.client.api.MessageId messageId)
public CursorPosition(Long timestamp)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.