Class Rollback

java.lang.Object
com.couchbase.client.dcp.highlevel.Rollback
All Implemented Interfaces:
DatabaseChangeEvent

public class Rollback extends Object implements DatabaseChangeEvent
  • Constructor Details

  • Method Details

    • getVbucket

      public int getVbucket()
      Description copied from interface: DatabaseChangeEvent
      Returns 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:
      getVbucket in interface DatabaseChangeEvent
    • getSeqno

      public long getSeqno()
      NOTE: Sequence numbers are unsigned, and must be compared using Long.compareUnsigned(long, long)
    • getFailedStartOffset

      public StreamOffset 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

      public void dispatch(DatabaseChangeListener listener)
      Description copied from interface: DatabaseChangeEvent
      Pass 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:
      dispatch in interface DatabaseChangeEvent