public class Rollback extends Object implements DatabaseChangeEvent
| Constructor and Description |
|---|
Rollback(Client client,
int vbucket,
long seqno,
Consumer<Throwable> errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(DatabaseChangeListener listener)
Pass this event to the appropriate method of the given listener.
|
long |
getSeqno()
NOTE: Sequence numbers are unsigned, and must be compared using
Long.compareUnsigned(long, long) |
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.
|
void |
resume()
Reopens the stream starting from the rollback point, without any snapshot information.
|
public int getVbucket()
DatabaseChangeEventgetVbucket in interface DatabaseChangeEventpublic long getSeqno()
Long.compareUnsigned(long, long)public void resume()
public void dispatch(DatabaseChangeListener listener)
DatabaseChangeEventThe listener is invoked immediately in the same thread that calls this method.
dispatch in interface DatabaseChangeEventCopyright © 2021 Couchbase, Inc.. All rights reserved.