public static class ListBuckets.Response extends StreamableRiakCommand.StreamableResponse<Namespace,BinaryValue>
This encapsulates an immutable list of bucket names and is Iterable:
for (Namespace ns : response)
{
System.out.println(ns.getBucketName());
}
chunkedResponseIterator| Constructor and Description |
|---|
Response(BinaryValue type,
List<BinaryValue> buckets) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Namespace> |
iterator()
Get an iterator over the result data.
|
isStreamingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Response(BinaryValue type, List<BinaryValue> buckets)
public Iterator<Namespace> iterator()
StreamableRiakCommand.StreamableResponseThread.isInterrupted()
in environments where thread interrupts must be obeyed.iterator in interface Iterable<Namespace>iterator in class StreamableRiakCommand.StreamableResponse<Namespace,BinaryValue>Copyright © 2016. All rights reserved.