Interface DatabaseChangeEvent

All Known Implementing Classes:
CollectionCreated, CollectionDropped, CollectionFlushed, Deletion, DocumentChange, FailoverLog, Mutation, Rollback, ScopeCreated, ScopeDropped, SeqnoAdvanced, SnapshotDetails, StreamEnd, StreamFailure

public interface DatabaseChangeEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Pass this event to the appropriate method of the given listener.
    int
    Returns the id of the virtual bucket associated with this event, or -1 if the event is not associated with a specific virtual bucket.
  • Method Details

    • dispatch

      void dispatch(DatabaseChangeListener listener)
      Pass this event to the appropriate method of the given listener.

      The listener is invoked immediately in the same thread that calls this method.

    • getVbucket

      int getVbucket()
      Returns the id of the virtual bucket associated with this event, or -1 if the event is not associated with a specific virtual bucket.