public class CommitterImpl extends ProxyService implements Committer, RetryingConnectionObserver<SequencedCommitCursorResponse>
| Constructor and Description |
|---|
CommitterImpl(CursorServiceClient client,
InitialCommitCursorRequest request) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
commitOffset(Offset offset) |
protected void |
handlePermanentError(CheckedApiException error) |
void |
onClientResponse(SequencedCommitCursorResponse value) |
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 CommitterImpl(CursorServiceClient client, InitialCommitCursorRequest request) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionprotected void handlePermanentError(CheckedApiException error)
handlePermanentError in class ProxyServiceprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServicepublic void triggerReinitialize()
triggerReinitialize in interface RetryingConnectionObserver<SequencedCommitCursorResponse>public com.google.api.core.ApiFuture<Void> commitOffset(Offset offset)
commitOffset in interface Committerpublic void onClientResponse(SequencedCommitCursorResponse value) throws CheckedApiException
onClientResponse in interface RetryingConnectionObserver<SequencedCommitCursorResponse>CheckedApiExceptionCopyright © 2021 Google LLC. All rights reserved.