public abstract static class StreamableRiakCommand.StreamableResponse<T,S> extends Object implements Iterable<T>
Modifier and Type | Field and Description |
---|---|
protected ChunkedResponseIterator<T,?,S> |
chunkedResponseIterator |
Modifier | Constructor and Description |
---|---|
protected |
StreamableResponse()
Constructor for not streamable response.
|
protected |
StreamableResponse(ChunkedResponseIterator<T,?,S> chunkedResponseIterator)
Constructor for streamable response
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStreaming()
Whether the results are to be streamed back.
|
Iterator<T> |
iterator()
Get an iterator over the result data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected ChunkedResponseIterator<T,?,S> chunkedResponseIterator
protected StreamableResponse(ChunkedResponseIterator<T,?,S> chunkedResponseIterator)
chunkedResponseIterator
- protected StreamableResponse()
public boolean isStreaming()
public Iterator<T> iterator()
Thread.isInterrupted()
in environments where thread interrupts must be obeyed.Copyright © 2016. All rights reserved.