Пример #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;
 }