Class ConnectedCommitterImpl
- java.lang.Object
-
- com.google.cloud.pubsublite.internal.wire.SingleConnection<StreamingCommitCursorRequest,StreamingCommitCursorResponse,SequencedCommitCursorResponse>
-
- com.google.cloud.pubsublite.internal.wire.ConnectedCommitterImpl
-
- All Implemented Interfaces:
com.google.api.gax.rpc.ResponseObserver<StreamingCommitCursorResponse>
,AutoCloseable
public class ConnectedCommitterImpl extends SingleConnection<StreamingCommitCursorRequest,StreamingCommitCursorResponse,SequencedCommitCursorResponse>
-
-
Field Summary
-
Fields inherited from class com.google.cloud.pubsublite.internal.wire.SingleConnection
DEFAULT_STREAM_IDLE_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(Offset offset)
protected void
handleStreamResponse(StreamingCommitCursorResponse response)
-
Methods inherited from class com.google.cloud.pubsublite.internal.wire.SingleConnection
close, initialize, onComplete, onError, onResponse, onStart, sendToClient, sendToStream, setError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
handleStreamResponse
protected void handleStreamResponse(StreamingCommitCursorResponse response) throws CheckedApiException
- Specified by:
handleStreamResponse
in classSingleConnection<StreamingCommitCursorRequest,StreamingCommitCursorResponse,SequencedCommitCursorResponse>
- Throws:
CheckedApiException
-
commit
public void commit(Offset offset)
-
-