public abstract class ReaderImpl extends GrpcStreamRetrier
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,
Long partitionId,
Runnable confirmCallback) |
protected CompletableFuture<Void> |
initImpl() |
protected void |
onShutdown(String reason) |
protected void |
onStreamReconnect() |
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,
@Nullable
Long partitionId,
Runnable confirmCallback)
protected abstract void handleClosePartitionSession(PartitionSession partitionSession)
protected void onStreamReconnect()
onStreamReconnect in class GrpcStreamRetrierprotected void onShutdown(String reason)
onShutdown in class GrpcStreamRetrierCopyright © 2024. All rights reserved.