ReturnType
- The type returned by the streaming and non-streaming operation versionsResponseType
- The protocol type returnedQueryInfoType
- Query info typepublic abstract class PBStreamingFutureOperation<ReturnType,ResponseType,QueryInfoType> extends PBFutureOperation<ReturnType,ResponseType,QueryInfoType> implements StreamingRiakFuture<ReturnType,QueryInfoType>
reqBuilder, reqMessageCode
Modifier | Constructor and Description |
---|---|
protected |
PBStreamingFutureOperation(byte reqMessageCode,
byte respMessageCode,
com.google.protobuf.GeneratedMessage.Builder<?> reqBuilder,
com.google.protobuf.Parser<ResponseType> respParser,
boolean streamResults) |
Modifier and Type | Method and Description |
---|---|
TransferQueue<ReturnType> |
getResultsQueue()
An Queue that provides the stream of results as they return from Riak.
|
protected void |
processMessage(ResponseType decodedMessage) |
protected abstract ReturnType |
processStreamingChunk(ResponseType rawResponseChunk) |
createChannelMessage, decode
addListener, await, await, cancel, cause, channelMessage, checkAndGetSingleResponse, convert, done, get, get, getNow, getQueryInfo, isCancelled, isDone, isSuccess, processBatchMessage, removeListener, setComplete, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, await, await, cancel, cause, get, get, getNow, getQueryInfo, isCancelled, isDone, isSuccess, removeListener
protected PBStreamingFutureOperation(byte reqMessageCode, byte respMessageCode, com.google.protobuf.GeneratedMessage.Builder<?> reqBuilder, com.google.protobuf.Parser<ResponseType> respParser, boolean streamResults)
protected void processMessage(ResponseType decodedMessage)
processMessage
in class FutureOperation<ReturnType,ResponseType,QueryInfoType>
protected abstract ReturnType processStreamingChunk(ResponseType rawResponseChunk)
public final TransferQueue<ReturnType> getResultsQueue()
StreamingRiakFuture
getResultsQueue
in interface StreamingRiakFuture<ReturnType,QueryInfoType>
Copyright © 2016. All rights reserved.