public final class PublisherImpl extends ProxyService implements Publisher<Offset>, RetryingConnectionObserver<Offset>
| Constructor and Description |
|---|
PublisherImpl(PublisherServiceGrpc.PublisherServiceStub stub,
InitialPublishRequest initialRequest,
com.google.api.gax.batching.BatchingSettings batchingSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
protected void |
handlePermanentError(io.grpc.StatusException error) |
void |
onClientResponse(Offset value) |
com.google.api.core.ApiFuture<Offset> |
publish(Message message) |
protected void |
start() |
protected void |
stop() |
void |
triggerReinitialize() |
addServices, addServices, doStart, doStop, onPermanentErroraddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncpublic PublisherImpl(PublisherServiceGrpc.PublisherServiceStub stub, InitialPublishRequest initialRequest, com.google.api.gax.batching.BatchingSettings batchingSettings) throws io.grpc.StatusException
io.grpc.StatusExceptionpublic void triggerReinitialize()
triggerReinitialize in interface RetryingConnectionObserver<Offset>protected void handlePermanentError(io.grpc.StatusException error)
handlePermanentError in class ProxyServiceprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServicepublic void onClientResponse(Offset value) throws io.grpc.StatusException
onClientResponse in interface RetryingConnectionObserver<Offset>io.grpc.StatusExceptionCopyright © 2020 Google LLC. All rights reserved.