public class PulsarTopicState<T> extends Object
| Constructor and Description |
|---|
PulsarTopicState(String topic) |
PulsarTopicState(String topic,
int start,
int end) |
PulsarTopicState(TopicRange topicRange) |
| Modifier and Type | Method and Description |
|---|---|
long |
extractTimestamp(T record,
long pulsarEventTimestamp) |
org.apache.pulsar.client.api.MessageId |
getCommittedOffset() |
boolean |
isOffsetDefined() |
void |
onEvent(T event,
long timestamp) |
void |
onPeriodicEmit() |
void |
setCommittedOffset(org.apache.pulsar.client.api.MessageId offset) |
String |
toString() |
public PulsarTopicState(String topic)
public PulsarTopicState(String topic, int start, int end)
public PulsarTopicState(TopicRange topicRange)
public final boolean isOffsetDefined()
public final void setCommittedOffset(org.apache.pulsar.client.api.MessageId offset)
public final org.apache.pulsar.client.api.MessageId getCommittedOffset()
public long extractTimestamp(T record, long pulsarEventTimestamp)
public void onEvent(T event, long timestamp)
public void onPeriodicEmit()
Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.