org.ektorp.changes
Class ChangesCommand.Builder

java.lang.Object
  extended by org.ektorp.changes.ChangesCommand.Builder
Enclosing class:
ChangesCommand

public static class ChangesCommand.Builder
extends Object

Ised to create a valid ChangesCommand

Author:
henrik lundgren

Constructor Summary
ChangesCommand.Builder()
           
 
Method Summary
 ChangesCommand build()
           
 ChangesCommand.Builder continuous(boolean b)
           
 ChangesCommand.Builder filter(String s)
          Reference a filter function from a design document to selectively get updates.
 ChangesCommand.Builder heartbeat(int i)
           
 ChangesCommand.Builder includeDocs(boolean b)
          Include the associated document with each result.
 ChangesCommand.Builder limit(int i)
           
 ChangesCommand.Builder merge(ChangesCommand other)
           
 ChangesCommand.Builder param(String name, String value)
          Adds a parameter to the GET request sent to the database.
 ChangesCommand.Builder since(long l)
          Start the results from the change immediately after the given sequence number.
 ChangesCommand.Builder since(String s)
          Start the results from the change immediately after the given sequence number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangesCommand.Builder

public ChangesCommand.Builder()
Method Detail

since

public ChangesCommand.Builder since(long l)
Start the results from the change immediately after the given sequence number.

Parameters:
l -
Returns:

since

public ChangesCommand.Builder since(String s)
Start the results from the change immediately after the given sequence number.

Parameters:
l -
Returns:

param

public ChangesCommand.Builder param(String name,
                                    String value)
Adds a parameter to the GET request sent to the database. This is mainly used for supplying parameters to filter functions.

Parameters:
name -
value -
Returns:

continuous

public ChangesCommand.Builder continuous(boolean b)

filter

public ChangesCommand.Builder filter(String s)
Reference a filter function from a design document to selectively get updates.

Parameters:
s -
Returns:

includeDocs

public ChangesCommand.Builder includeDocs(boolean b)
Include the associated document with each result.

Parameters:
b -
Returns:

heartbeat

public ChangesCommand.Builder heartbeat(int i)

limit

public ChangesCommand.Builder limit(int i)

merge

public ChangesCommand.Builder merge(ChangesCommand other)

build

public ChangesCommand build()


Copyright © 2011. All Rights Reserved.