public class FanOutRecordsPublisher extends Object implements RecordsPublisher
Constructor and Description |
---|
FanOutRecordsPublisher(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesis,
String shardId,
String consumerArn) |
FanOutRecordsPublisher(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesis,
String shardId,
String consumerArn,
String streamIdentifierSer) |
Modifier and Type | Method and Description |
---|---|
RequestDetails |
getLastSuccessfulRequestDetails()
Gets last successful request details.
|
protected void |
logAcquireTimeoutMessage(Throwable t) |
void |
notify(RecordsDeliveryAck recordsDeliveryAck)
Notify the publisher on receipt of a data event.
|
void |
restartFrom(RecordsRetrieved recordsRetrieved)
Restart from the last accepted and processed
|
void |
shutdown()
Shutdowns the publisher.
|
void |
start(ExtendedSequenceNumber extendedSequenceNumber,
InitialPositionInStreamExtended initialPositionInStreamExtended)
Initializes the publisher with where to start processing.
|
void |
subscribe(org.reactivestreams.Subscriber<? super RecordsRetrieved> s) |
public FanOutRecordsPublisher(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesis, String shardId, String consumerArn)
public void start(ExtendedSequenceNumber extendedSequenceNumber, InitialPositionInStreamExtended initialPositionInStreamExtended)
RecordsPublisher
start
in interface RecordsPublisher
extendedSequenceNumber
- the sequence number to start processing frominitialPositionInStreamExtended
- if there is no sequence number the initial position to usepublic void shutdown()
RecordsPublisher
shutdown
in interface RecordsPublisher
public void restartFrom(RecordsRetrieved recordsRetrieved)
RecordsPublisher
restartFrom
in interface RecordsPublisher
recordsRetrieved
- the processRecordsInput to restart frompublic void notify(RecordsDeliveryAck recordsDeliveryAck)
RecordsPublisher
notify
in interface RecordsPublisher
recordsDeliveryAck
- acknowledgement received from the subscriber.public RequestDetails getLastSuccessfulRequestDetails()
RecordsPublisher
getLastSuccessfulRequestDetails
in interface RecordsPublisher
protected void logAcquireTimeoutMessage(Throwable t)
public void subscribe(org.reactivestreams.Subscriber<? super RecordsRetrieved> s)
subscribe
in interface org.reactivestreams.Publisher<RecordsRetrieved>
Copyright © 2022. All rights reserved.