public class StreamEnd extends Object implements DatabaseChangeEvent
| Constructor and Description |
|---|
StreamEnd(int vbucket,
StreamEndReason reason) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(DatabaseChangeListener listener)
Pass this event to the appropriate method of the given listener.
|
StreamEndReason |
getReason() |
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.
|
String |
toString() |
public StreamEnd(int vbucket,
StreamEndReason reason)
public void dispatch(DatabaseChangeListener listener)
DatabaseChangeEventThe listener is invoked immediately in the same thread that calls this method.
dispatch in interface DatabaseChangeEventpublic int getVbucket()
DatabaseChangeEventgetVbucket in interface DatabaseChangeEventpublic StreamEndReason getReason()
Copyright © 2021 Couchbase, Inc.. All rights reserved.