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(CheckedApiException streamError) |
void |
waitUntilEmpty() |
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(CheckedApiException streamError)
triggerReinitialize in interface RetryingConnectionObserver<SequencedCommitCursorResponse>public void onClientResponse(SequencedCommitCursorResponse value) throws CheckedApiException
onClientResponse in interface RetryingConnectionObserver<SequencedCommitCursorResponse>CheckedApiExceptionpublic com.google.api.core.ApiFuture<Void> commitOffset(Offset offset)
commitOffset in interface Committerpublic void waitUntilEmpty()
throws CheckedApiException
waitUntilEmpty in interface CommitterCheckedApiExceptionCopyright © 2021 Google LLC. All rights reserved.