Class StreamFailure

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

public class StreamFailure extends Object implements DatabaseChangeEvent
  • Constructor Details

    • StreamFailure

      public StreamFailure(int vbucket, Throwable throwable)
  • Method Details

    • 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
    • getCause

      public Throwable getCause()
    • getVbucket

      public int getVbucket()
      Returns the partition that experience the failure, or -1 if the failure is not specific to a partition.
      Specified by:
      getVbucket in interface DatabaseChangeEvent