Example #1
0
 public Changes filter(String filter) {
   changes = changes.filter(filter);
   return this;
 }
Example #2
0
 public Changes since(String since) {
   changes = changes.since(since);
   return this;
 }
Example #3
0
 public Changes limit(int limit) {
   changes = changes.limit(limit);
   return this;
 }
Example #4
0
 /** Stops a running continuous feed. */
 public void stop() {
   changes.stop();
 }
Example #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;
 }
Example #6
0
 /**
  * Checks whether a feed is available in the continuous stream, blocking until a feed is received.
  */
 public boolean hasNext() {
   return changes.hasNext();
 }
Example #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;
 }
Example #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;
 }
Example #9
0
 public Changes style(String style) {
   changes = changes.style(style);
   return this;
 }
Example #10
0
 public Changes includeDocs(boolean includeDocs) {
   changes = changes.includeDocs(includeDocs);
   return this;
 }
Example #11
0
 public Changes timeout(long timeout) {
   changes = changes.timeout(timeout);
   return this;
 }
Example #12
0
 public Changes heartBeat(long heartBeat) {
   changes = changes.heartBeat(heartBeat);
   return this;
 }