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 DocumentScrollRequestbuild()StringgetName()StringgetQuery()StringgetRepository()intgetSize()DurationgetTimeout()StringgetUsername()DocumentScrollRequest.Buildername(String name)Uses a registered scroll implementation,nullfor default implementation.DocumentScrollRequest.Builderrepository(String repository)The repository to execute the NXQL request.DocumentScrollRequest.Buildersize(int size)The number of item to fetch.DocumentScrollRequest.Buildertimeout(Duration timeout)Maximum duration between iteration on Scroll.DocumentScrollRequest.Builderusername(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,nullfor 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()
-
-