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 TypeMethodDescriptionvoiddispatch(DatabaseChangeListener listener) Pass this event to the appropriate method of the given listener.intReturns 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
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.
-