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,
BiConsumer<Status,Throwable> errorsHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
generateRandomId(int length) |
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, BiConsumer<Status,Throwable> errorsHandler)
protected abstract org.slf4j.Logger getLogger()
protected abstract String getStreamName()
protected abstract void onStreamReconnect()
protected abstract void onShutdown(String reason)
protected static String generateRandomId(int length)
protected CompletableFuture<Void> shutdownImpl()
protected CompletableFuture<Void> shutdownImpl(String reason)
Copyright © 2025. All rights reserved.