Class BatchingCommitter
- java.lang.Object
-
- com.google.api.core.AbstractApiService
-
- com.google.cloud.pubsublite.internal.ProxyService
-
- com.google.cloud.pubsublite.internal.wire.BatchingCommitter
-
- All Implemented Interfaces:
com.google.api.core.ApiService
,Committer
public class BatchingCommitter extends ProxyService implements Committer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.core.ApiFuture<Void>
commitOffset(Offset offset)
protected void
stop()
void
waitUntilEmpty()
-
Methods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, handlePermanentError, onPermanentError, start
-
Methods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
-
-
-
-
Method Detail
-
commitOffset
public com.google.api.core.ApiFuture<Void> commitOffset(Offset offset)
- Specified by:
commitOffset
in interfaceCommitter
-
waitUntilEmpty
public void waitUntilEmpty() throws CheckedApiException
- Specified by:
waitUntilEmpty
in interfaceCommitter
- Throws:
CheckedApiException
-
stop
protected void stop()
- Overrides:
stop
in classProxyService
-
-