| Package | Description |
|---|---|
| org.apache.flink.streaming.connectors.pulsar.internal |
| Modifier and Type | Class and Description |
|---|---|
class |
PoisonState
A sign state that used to stop fetcher earlier.
|
class |
PulsarTopicPartitionStateWithWatermarkGenerator<T>
A special version of the per-pulsar-partition-state that additionally holds a
TimestampAssigner, WatermarkGenerator, an immediate WatermarkOutput, and a
deferred WatermarkOutput for this partition. |
| Modifier and Type | Field and Description |
|---|---|
protected PulsarTopicState<T> |
ReaderThread.state |
| Modifier and Type | Field and Description |
|---|---|
protected List<PulsarTopicState<T>> |
PulsarFetcher.subscribedPartitionStates
All partitions (and their state) that this fetcher is subscribed to.
|
protected ClosableBlockingQueue<PulsarTopicState<T>> |
PulsarFetcher.unassignedPartitionsQueue
Queue of partitions that are not yet assigned to any reader thread for consuming.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<PulsarTopicState<T>> |
PulsarFetcher.getSubscribedTopicStates() |
| Modifier and Type | Method and Description |
|---|---|
protected ReaderThread<T> |
PulsarFetcher.createReaderThread(ExceptionProxy exceptionProxy,
PulsarTopicState state) |
protected void |
PulsarFetcher.emitRecordsWithTimestamps(T record,
PulsarTopicState<T> partitionState,
org.apache.pulsar.client.api.MessageId offset,
long pulsarEventTimestamp)
Emits a record attaching a timestamp to it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<TopicRange,ReaderThread<T>> |
PulsarFetcher.createAndStartReaderThread(List<PulsarTopicState<T>> states,
ExceptionProxy exceptionProxy) |
| Constructor and Description |
|---|
PulsarTopicPartitionStateWithWatermarkGenerator(TopicRange topicRange,
PulsarTopicState<T> topicState,
org.apache.flink.api.common.eventtime.TimestampAssigner<T> timestampAssigner,
org.apache.flink.api.common.eventtime.WatermarkGenerator<T> watermarkGenerator,
org.apache.flink.api.common.eventtime.WatermarkOutput immediateOutput,
org.apache.flink.api.common.eventtime.WatermarkOutput deferredOutput) |
ReaderThread(PulsarFetcher<T> owner,
PulsarTopicState state,
org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConf,
Map<String,Object> readerConf,
PulsarDeserializationSchema<T> deserializer,
int pollTimeoutMs,
ExceptionProxy exceptionProxy) |
ReaderThread(PulsarFetcher<T> owner,
PulsarTopicState state,
org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConf,
Map<String,Object> readerConf,
PulsarDeserializationSchema<T> deserializer,
int pollTimeoutMs,
ExceptionProxy exceptionProxy,
boolean failOnDataLoss,
boolean useEarliestWhenDataLoss,
boolean excludeMessageId) |
Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.