Class CommitterImpl
java.lang.Object
com.google.api.core.AbstractApiService
com.google.cloud.pubsublite.internal.ProxyService
com.google.cloud.pubsublite.internal.wire.CommitterImpl
- All Implemented Interfaces:
com.google.api.core.ApiService,Committer,RetryingConnectionObserver<SequencedCommitCursorResponse>
public class CommitterImpl
extends ProxyService
implements Committer, RetryingConnectionObserver<SequencedCommitCursorResponse>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.core.ApiService
com.google.api.core.ApiService.Listener, com.google.api.core.ApiService.State -
Constructor Summary
ConstructorsConstructorDescriptionCommitterImpl(StreamFactory<StreamingCommitCursorRequest, StreamingCommitCursorResponse> streamFactory, InitialCommitCursorRequest request) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.core.ApiFuture<Void>commitOffset(Offset offset) protected voidvoidprotected voidstop()voidtriggerReinitialize(CheckedApiException streamError) voidMethods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, onPermanentError, startMethods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.core.ApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Constructor Details
-
CommitterImpl
public CommitterImpl(StreamFactory<StreamingCommitCursorRequest, StreamingCommitCursorResponse> streamFactory, InitialCommitCursorRequest request) throws com.google.api.gax.rpc.ApiException- Throws:
com.google.api.gax.rpc.ApiException
-
-
Method Details
-
handlePermanentError
- Overrides:
handlePermanentErrorin classProxyService
-
stop
protected void stop()- Overrides:
stopin classProxyService
-
triggerReinitialize
- Specified by:
triggerReinitializein interfaceRetryingConnectionObserver<SequencedCommitCursorResponse>
-
onClientResponse
- Specified by:
onClientResponsein interfaceRetryingConnectionObserver<SequencedCommitCursorResponse>- Throws:
CheckedApiException
-
commitOffset
- Specified by:
commitOffsetin interfaceCommitter
-
waitUntilEmpty
- Specified by:
waitUntilEmptyin interfaceCommitter- Throws:
CheckedApiException
-