@ThreadSafe
public class KinesisShardReader
extends java.lang.Object
| Constructor and Description |
|---|
KinesisShardReader(java.lang.String channelName,
java.lang.String shardName,
software.amazon.awssdk.services.kinesis.KinesisClient kinesisClient,
java.util.concurrent.ExecutorService executorService,
java.time.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<de.otto.synapse.channel.ShardPosition> |
consumeUntil(de.otto.synapse.channel.ShardPosition startFrom,
java.time.Instant until,
java.util.function.Consumer<KinesisShardResponse> responseConsumer) |
java.lang.String |
getChannelName() |
java.lang.String |
getShardName() |
boolean |
isStopping() |
void |
stop() |
public KinesisShardReader(java.lang.String channelName,
java.lang.String shardName,
software.amazon.awssdk.services.kinesis.KinesisClient kinesisClient,
java.util.concurrent.ExecutorService executorService,
java.time.Clock clock)
public java.lang.String getChannelName()
public java.lang.String getShardName()
public java.util.concurrent.CompletableFuture<de.otto.synapse.channel.ShardPosition> consumeUntil(de.otto.synapse.channel.ShardPosition startFrom,
java.time.Instant until,
java.util.function.Consumer<KinesisShardResponse> responseConsumer)
public void stop()
public boolean isStopping()