Class Rollback
java.lang.Object
com.couchbase.client.dcp.highlevel.Rollback
- All Implemented Interfaces:
DatabaseChangeEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(DatabaseChangeListener listener) Pass this event to the appropriate method of the given listener.Returns the requested start offset that lead to this rollback.longgetSeqno()NOTE: Sequence numbers are unsigned, and must be compared usingLong.compareUnsigned(long, long)intReturns the id of the virtual bucket associated with this event, or -1 if the event is not associated with a specific virtual bucket.voidresume()Reopens the stream starting from the rollback point, without any snapshot information.
-
Constructor Details
-
Rollback
-
-
Method Details
-
getVbucket
public int getVbucket()Description copied from interface:DatabaseChangeEventReturns the id of the virtual bucket associated with this event, or -1 if the event is not associated with a specific virtual bucket.- Specified by:
getVbucketin interfaceDatabaseChangeEvent
-
getSeqno
public long getSeqno()NOTE: Sequence numbers are unsigned, and must be compared usingLong.compareUnsigned(long, long) -
getFailedStartOffset
Returns the requested start offset that lead to this rollback.Useful only for diagnostic purposes.
-
resume
public void resume()Reopens the stream starting from the rollback point, without any snapshot information. -
dispatch
Description copied from interface:DatabaseChangeEventPass this event to the appropriate method of the given listener.The listener is invoked immediately in the same thread that calls this method.
- Specified by:
dispatchin interfaceDatabaseChangeEvent
-