public class CommitterImpl extends ProxyService implements Committer, RetryingConnectionObserver<SequencedCommitCursorResponse>
| Constructor and Description |
|---|
CommitterImpl(StreamFactory<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamFactory,
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 |
stop() |
void |
triggerReinitialize(CheckedApiException streamError) |
void |
waitUntilEmpty() |
addServices, addServices, doStart, doStop, onPermanentError, startaddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncpublic CommitterImpl(StreamFactory<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamFactory, InitialCommitCursorRequest request) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionprotected void handlePermanentError(CheckedApiException error)
handlePermanentError 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 © 2022 Google LLC. All rights reserved.