public final class ChangeFeedOptions extends FeedOptionsBase
Constructor and Description |
---|
ChangeFeedOptions() |
ChangeFeedOptions(ChangeFeedOptions options) |
Modifier and Type | Method and Description |
---|---|
String |
getPartitionKeyRangeId()
Get the partition key range id for the current request
|
boolean |
isStartFromBeginning()
Get whether change feed should start from beginning (true) or from current (false).
|
void |
setPartitionKeyRangeId(String partitionKeyRangeId)
Set the partition key range id for the current request
|
void |
setStartFromBeginning(boolean startFromBeginning)
Set whether change feed should start from beginning (true) or from current (false).
|
getMaxItemCount, getPartitionKey, getRequestContinuation, setMaxItemCount, setPartitionKey, setRequestContinuation
public ChangeFeedOptions()
public ChangeFeedOptions(ChangeFeedOptions options)
public String getPartitionKeyRangeId()
ChangeFeed requests can be executed against specific partition key ranges. This is used to process the change feed in parallel across multiple consumers.
PartitionKeyRange
,
AsyncDocumentClient.readPartitionKeyRanges(String, FeedOptions)
public void setPartitionKeyRangeId(String partitionKeyRangeId)
ChangeFeed requests can be executed against specific partition key ranges. This is used to process the change feed in parallel across multiple consumers.
partitionKeyRangeId
- a string indicating the partition key range IDPartitionKeyRange
,
AsyncDocumentClient.readPartitionKeyRanges(String, FeedOptions)
public boolean isStartFromBeginning()
public void setStartFromBeginning(boolean startFromBeginning)
startFromBeginning
- a boolean value indicating change feed should start from beginning or notCopyright © 2018. All rights reserved.