public abstract class ReaderImpl extends GrpcStreamRetrier
| Modifier and Type | Class and Description |
|---|---|
protected class |
ReaderImpl.ReadSessionImpl |
id, isReconnecting, isStopped, reconnectCounter| Constructor and Description |
|---|
ReaderImpl(TopicRpc topicRpc,
ReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected org.slf4j.Logger |
getLogger() |
protected String |
getStreamName() |
protected abstract void |
handleClosePartitionSession(PartitionSession partitionSession) |
protected abstract void |
handleCommitResponse(long committedOffset,
PartitionSession partitionSession) |
protected abstract CompletableFuture<Void> |
handleDataReceivedEvent(DataReceivedEvent event) |
protected abstract void |
handleStartPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest request,
PartitionSession partitionSession,
Consumer<StartPartitionSessionSettings> confirmCallback) |
protected abstract void |
handleStopPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest request,
PartitionSession partitionSession,
Runnable confirmCallback) |
protected CompletableFuture<Void> |
initImpl() |
protected void |
onShutdown(String reason) |
protected void |
onStreamReconnect() |
protected CompletableFuture<Status> |
sendUpdateOffsetsInTransaction(YdbTransaction transaction,
Map<String,List<PartitionOffsets>> offsets,
UpdateOffsetsInTransactionSettings settings) |
generateRandomId, onSessionClosed, shutdownImpl, shutdownImplpublic ReaderImpl(TopicRpc topicRpc, ReaderSettings settings)
protected org.slf4j.Logger getLogger()
getLogger in class GrpcStreamRetrierprotected String getStreamName()
getStreamName in class GrpcStreamRetrierprotected CompletableFuture<Void> initImpl()
protected abstract CompletableFuture<Void> handleDataReceivedEvent(DataReceivedEvent event)
protected abstract void handleCommitResponse(long committedOffset,
PartitionSession partitionSession)
protected abstract void handleStartPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest request,
PartitionSession partitionSession,
Consumer<StartPartitionSessionSettings> confirmCallback)
protected abstract void handleStopPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest request,
PartitionSession partitionSession,
Runnable confirmCallback)
protected abstract void handleClosePartitionSession(PartitionSession partitionSession)
protected void onStreamReconnect()
onStreamReconnect in class GrpcStreamRetrierprotected void onShutdown(String reason)
onShutdown in class GrpcStreamRetrierprotected CompletableFuture<Status> sendUpdateOffsetsInTransaction(YdbTransaction transaction, Map<String,List<PartitionOffsets>> offsets, UpdateOffsetsInTransactionSettings settings)
Copyright © 2025. All rights reserved.