org.ektorp
Class StreamingChangesResult
java.lang.Object
org.ektorp.StreamingChangesResult
- All Implemented Interfaces:
- Closeable, Serializable, Iterable<DocumentChange>
public class StreamingChangesResult
- extends Object
- implements Serializable, Iterable<DocumentChange>, Closeable
- Author:
- Sverre Kristian Valskrå
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingChangesResult
public StreamingChangesResult(org.codehaus.jackson.map.ObjectMapper objectMapper,
HttpResponse response)
iterator
public Iterator<DocumentChange> iterator()
- Specified by:
iterator
in interface Iterable<DocumentChange>
abort
public void abort()
- Aborts the stream immediately
close
public void close()
- Specified by:
close
in interface Closeable
getLastSeq
public long getLastSeq()
- This method can only be called after stream is fully red
- Returns:
Copyright © 2011. All Rights Reserved.