public abstract class GrpcStreamRetrier extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected AtomicBoolean |
isReconnecting |
protected AtomicBoolean |
isStopped |
protected AtomicInteger |
reconnectCounter |
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcStreamRetrier(ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.slf4j.Logger |
getLogger() |
protected abstract String |
getStreamName() |
protected void |
onSessionClosed(Status status,
Throwable th) |
protected abstract void |
onShutdown(String reason) |
protected abstract void |
onStreamReconnect() |
protected CompletableFuture<Void> |
shutdownImpl() |
protected CompletableFuture<Void> |
shutdownImpl(String reason) |
protected final String id
protected final AtomicBoolean isReconnecting
protected final AtomicBoolean isStopped
protected final AtomicInteger reconnectCounter
protected GrpcStreamRetrier(ScheduledExecutorService scheduler)
protected abstract org.slf4j.Logger getLogger()
protected abstract String getStreamName()
protected abstract void onStreamReconnect()
protected abstract void onShutdown(String reason)
protected CompletableFuture<Void> shutdownImpl()
protected CompletableFuture<Void> shutdownImpl(String reason)
Copyright © 2024. All rights reserved.