public class QueryResultBuffer extends Object implements QueryResultStream
This class is intended for internal use. Be cautious.
| Constructor and Description |
|---|
QueryResultBuffer()
Constructs a
QueryResultBuffer |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fail(EventStoreException exception) |
boolean |
hasNext(int timeout,
TimeUnit timeUnit)
Validates whether there is a following entry in this stream to consume.
|
QueryResult |
next()
Returns the following
QueryResult from this stream. |
void |
push(io.axoniq.axonserver.grpc.event.QueryEventsResponse eventWithToken) |
void |
registerCloseListener(Consumer<QueryResultBuffer> closeCallback) |
void |
registerConsumeListener(Consumer<Integer> consumeListener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNextforEachRemaining, removepublic QueryResultBuffer()
QueryResultBufferpublic boolean hasNext(int timeout,
TimeUnit timeUnit)
QueryResultStreamtimeout with the
given unit to wait to respondhasNext in interface QueryResultStreamtrue if there is another entry, false if there isn't for at the given durationpublic QueryResult next()
QueryResultStreamQueryResult from this stream. Might return null if nothing is presentnext in interface Iterator<QueryResult>next in interface QueryResultStreamQueryResult from this streampublic void close()
close in interface AutoCloseablepublic void registerCloseListener(Consumer<QueryResultBuffer> closeCallback)
public void push(io.axoniq.axonserver.grpc.event.QueryEventsResponse eventWithToken)
public void fail(EventStoreException exception)
Copyright © 2010–2020. All rights reserved.