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) |
io.grpc.Status |
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 io.grpc.Status onClientResponse(Offset value)
onClientResponse in interface RetryingConnectionObserver<Offset>Copyright © 2020 Google LLC. All rights reserved.