public class CommitterImpl extends ProxyService implements Committer, RetryingConnectionObserver<SequencedCommitCursorResponse>
Implements
Committer, com.google.cloud.pubsublite.internal.wire.RetryingConnectionObserver<com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse>Constructors
CommitterImpl(StreamFactory<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamFactory, InitialCommitCursorRequest request)
public CommitterImpl(StreamFactory<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamFactory, InitialCommitCursorRequest request)
Name | Description |
streamFactory | StreamFactory<StreamingCommitCursorRequest,StreamingCommitCursorResponse> |
request | InitialCommitCursorRequest |
Methods
commitOffset(Offset offset)
public ApiFuture<Void> commitOffset(Offset offset)
Name | Description |
offset | Offset |
Type | Description |
ApiFuture<Void> |
handlePermanentError(CheckedApiException error)
protected void handlePermanentError(CheckedApiException error)
Name | Description |
error | CheckedApiException |
onClientResponse(SequencedCommitCursorResponse value)
public void onClientResponse(SequencedCommitCursorResponse value)
Name | Description |
value | SequencedCommitCursorResponse |
Type | Description |
CheckedApiException |
stop()
protected void stop()
triggerReinitialize(CheckedApiException streamError)
public void triggerReinitialize(CheckedApiException streamError)
Name | Description |
streamError | CheckedApiException |
waitUntilEmpty()
public void waitUntilEmpty()
Type | Description |
CheckedApiException |