Package org.nuxeo.ecm.core.scroll
Class DocumentScrollRequest.Builder
- java.lang.Object
-
- org.nuxeo.ecm.core.scroll.DocumentScrollRequest.Builder
-
- Enclosing class:
- DocumentScrollRequest
public static class DocumentScrollRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentScrollRequest
build()
String
getName()
String
getQuery()
String
getRepository()
int
getSize()
Duration
getTimeout()
String
getUsername()
DocumentScrollRequest.Builder
name(String name)
Uses a registered scroll implementation,null
for default implementation.DocumentScrollRequest.Builder
repository(String repository)
The repository to execute the NXQL request.DocumentScrollRequest.Builder
size(int size)
The number of item to fetch.DocumentScrollRequest.Builder
timeout(Duration timeout)
Maximum duration between iteration on Scroll.DocumentScrollRequest.Builder
username(String username)
The user executing the NXQL request.
-
-
-
Field Detail
-
repository
protected String repository
-
size
protected int size
-
UNKNOWN
public static final String UNKNOWN
- See Also:
- Constant Field Values
-
DEFAULT_SCROLL_SIZE
public static final int DEFAULT_SCROLL_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final Duration DEFAULT_TIMEOUT
-
-
Method Detail
-
name
public DocumentScrollRequest.Builder name(String name)
Uses a registered scroll implementation,null
for default implementation.
-
timeout
public DocumentScrollRequest.Builder timeout(Duration timeout)
Maximum duration between iteration on Scroll.
-
size
public DocumentScrollRequest.Builder size(int size)
The number of item to fetch.
-
repository
public DocumentScrollRequest.Builder repository(String repository)
The repository to execute the NXQL request.
-
username
public DocumentScrollRequest.Builder username(String username)
The user executing the NXQL request.
-
getTimeout
public Duration getTimeout()
-
getSize
public int getSize()
-
getUsername
public String getUsername()
-
getRepository
public String getRepository()
-
build
public DocumentScrollRequest build()
-
-