org.ektorp
Class StreamingChangesResult

java.lang.Object
  extended by 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

Constructor Summary
StreamingChangesResult(org.codehaus.jackson.map.ObjectMapper objectMapper, HttpResponse response)
           
 
Method Summary
 void abort()
          Aborts the stream immediately
 void close()
           
 long getLastSeq()
          This method can only be called after stream is fully red
 Iterator<DocumentChange> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingChangesResult

public StreamingChangesResult(org.codehaus.jackson.map.ObjectMapper objectMapper,
                              HttpResponse response)
Method Detail

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.