com.basho.riak.client.http.response
Class StreamedSiblingsCollection
java.lang.Object
com.basho.riak.client.http.util.CollectionWrapper<RiakObject>
com.basho.riak.client.http.response.StreamedSiblingsCollection
- All Implemented Interfaces:
- Iterable<RiakObject>, Collection<RiakObject>
public class StreamedSiblingsCollection
- extends CollectionWrapper<RiakObject>
Method Summary |
protected boolean |
cacheNext()
Tries to read and cache another part of the multipart/mixed stream. |
protected void |
closeBackend()
Close the backend so no more objects can be read from it (getNext()
should only return null afterwards). |
Methods inherited from class com.basho.riak.client.http.util.CollectionWrapper |
add, addAll, cache, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamedSiblingsCollection
public StreamedSiblingsCollection(RiakClient riak,
String bucket,
String key,
StreamedMultipart multipart)
cacheNext
protected boolean cacheNext()
- Tries to read and cache another part of the multipart/mixed stream.
- Specified by:
cacheNext
in class CollectionWrapper<RiakObject>
- Returns:
- true if an object was added to the cache; false otherwise.
- Throws:
RiakIORuntimeException
- If an error occurs during communication with the Riak server.
closeBackend
protected void closeBackend()
- Description copied from class:
CollectionWrapper
- Close the backend so no more objects can be read from it (getNext()
should only return null afterwards). Called by clear().
- Specified by:
closeBackend
in class CollectionWrapper<RiakObject>
Copyright © 2012. All Rights Reserved.