Search in sources :

Example 1 with ViewChunkTrailer

use of com.couchbase.client.core.msg.view.ViewChunkTrailer in project couchbase-jvm-clients by couchbase.

the class ViewChunkResponseParser method signalComplete.

@Override
public void signalComplete() {
    Optional<CouchbaseException> maybeError = error();
    if (maybeError.isPresent()) {
        failRows(maybeError.get());
    } else {
        completeRows();
    }
    completeTrailer(new ViewChunkTrailer(error));
}
Also used : CouchbaseException(com.couchbase.client.core.error.CouchbaseException) ViewChunkTrailer(com.couchbase.client.core.msg.view.ViewChunkTrailer)

Aggregations

CouchbaseException (com.couchbase.client.core.error.CouchbaseException)1 ViewChunkTrailer (com.couchbase.client.core.msg.view.ViewChunkTrailer)1