public final class PagingParameters extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LIMIT
Default limit value.
|
Modifier and Type | Method and Description |
---|---|
static PagingParameters |
marker(long limit)
Starts marker based pagination.
|
static PagingParameters |
offset(long offset,
long limit)
Starts offset based pagination.
|
public static final long DEFAULT_LIMIT
public static PagingParameters marker(long limit)
limit
- how many elements per request should be fetched.public static PagingParameters offset(long offset, long limit)
offset
- where offset pagination should start. Offset cannot be larger than 300000.limit
- how many elements per request should be fetched.