public class StreamFailure extends Object implements DatabaseChangeEvent
| Constructor and Description |
|---|
StreamFailure(int vbucket,
Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(DatabaseChangeListener listener)
Pass this event to the appropriate method of the given listener.
|
Throwable |
getCause() |
int |
getVbucket()
Returns the partition that experience the failure, or -1 if the failure is not specific to a partition.
|
public StreamFailure(int vbucket,
Throwable throwable)
public void dispatch(DatabaseChangeListener listener)
DatabaseChangeEventThe listener is invoked immediately in the same thread that calls this method.
dispatch in interface DatabaseChangeEventpublic Throwable getCause()
public int getVbucket()
getVbucket in interface DatabaseChangeEventCopyright © 2021 Couchbase, Inc.. All rights reserved.