示例#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;
 }