public class ListBucketsOperation extends PBStreamingFutureOperation<ListBucketsOperation.Response,RiakKvPB.RpbListBucketsResp,BinaryValue>
Modifier and Type | Class and Description |
---|---|
static class |
ListBucketsOperation.Builder |
static class |
ListBucketsOperation.Response |
reqBuilder, reqMessageCode
Modifier and Type | Method and Description |
---|---|
protected ListBucketsOperation.Response |
convert(List<RiakKvPB.RpbListBucketsResp> rawResponse) |
protected boolean |
done(RiakKvPB.RpbListBucketsResp message)
Detect when the streaming operation is finished
|
BinaryValue |
getQueryInfo()
Returns information related to the operation performed.
|
protected ListBucketsOperation.Response |
processStreamingChunk(RiakKvPB.RpbListBucketsResp rawResponseChunk) |
getResultsQueue, processMessage
createChannelMessage, decode
addListener, await, await, cancel, cause, channelMessage, checkAndGetSingleResponse, get, get, getNow, 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, isCancelled, isDone, isSuccess, removeListener
protected boolean done(RiakKvPB.RpbListBucketsResp message)
FutureOperation
done
in class FutureOperation<ListBucketsOperation.Response,RiakKvPB.RpbListBucketsResp,BinaryValue>
message
- raw messageprotected ListBucketsOperation.Response convert(List<RiakKvPB.RpbListBucketsResp> rawResponse)
convert
in class FutureOperation<ListBucketsOperation.Response,RiakKvPB.RpbListBucketsResp,BinaryValue>
protected ListBucketsOperation.Response processStreamingChunk(RiakKvPB.RpbListBucketsResp rawResponseChunk)
public BinaryValue getQueryInfo()
RiakFuture
Useful in async operations when you want to know what operation this future refers to.
getQueryInfo
in interface RiakFuture<ListBucketsOperation.Response,BinaryValue>
getQueryInfo
in class FutureOperation<ListBucketsOperation.Response,RiakKvPB.RpbListBucketsResp,BinaryValue>
Copyright © 2016. All rights reserved.