public final class PublisherImpl extends ProxyService implements Publisher<Offset>, RetryingConnectionObserver<Offset>
| Constructor and Description |
|---|
PublisherImpl(PublisherServiceClient client,
InitialPublishRequest initialRequest,
com.google.api.gax.batching.BatchingSettings batchingSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOutstandingPublishes() |
void |
flush() |
protected void |
handlePermanentError(CheckedApiException 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(PublisherServiceClient client, InitialPublishRequest initialRequest, com.google.api.gax.batching.BatchingSettings batchingSettings) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionpublic void triggerReinitialize()
triggerReinitialize in interface RetryingConnectionObserver<Offset>protected void handlePermanentError(CheckedApiException error)
handlePermanentError in class ProxyServiceprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServicepublic void cancelOutstandingPublishes()
cancelOutstandingPublishes in interface Publisher<Offset>public void onClientResponse(Offset value) throws CheckedApiException
onClientResponse in interface RetryingConnectionObserver<Offset>CheckedApiExceptionCopyright © 2021 Google LLC. All rights reserved.