예제 #1
0
 public Changes filter(String filter) {
   changes = changes.filter(filter);
   return this;
 }
예제 #2
0
 public Changes since(String since) {
   changes = changes.since(since);
   return this;
 }
예제 #3
0
 public Changes limit(int limit) {
   changes = changes.limit(limit);
   return this;
 }
예제 #4
0
 /** Stops a running continuous feed. */
 public void stop() {
   changes.stop();
 }
예제 #5
0
 /** Requests Change notifications of feed type normal. */
 public ChangesResult getChanges() {
   org.lightcouch.ChangesResult couchDbChangesResult = changes.getChanges();
   ChangesResult changeResult = new ChangesResult(couchDbChangesResult);
   return changeResult;
 }
예제 #6
0
 /**
  * Checks whether a feed is available in the continuous stream, blocking until a feed is received.
  */
 public boolean hasNext() {
   return changes.hasNext();
 }
예제 #7
0
 /** @return The next feed in the stream. */
 public Row next() {
   org.lightcouch.ChangesResult.Row next = changes.next();
   Row row = new Row(next);
   return row;
 }
예제 #8
0
 /**
  * Requests Change notifications of feed type continuous.
  *
  * <p>Feed notifications are accessed in an <i>iterator</i> style.
  */
 public Changes continuousChanges() {
   changes = changes.continuousChanges();
   return this;
 }
예제 #9
0
 public Changes style(String style) {
   changes = changes.style(style);
   return this;
 }
예제 #10
0
 public Changes includeDocs(boolean includeDocs) {
   changes = changes.includeDocs(includeDocs);
   return this;
 }
예제 #11
0
 public Changes timeout(long timeout) {
   changes = changes.timeout(timeout);
   return this;
 }
예제 #12
0
 public Changes heartBeat(long heartBeat) {
   changes = changes.heartBeat(heartBeat);
   return this;
 }