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
|
ZonedDateTime |
getStartDateTime()
Gets the zoned date time to start looking for changes after.
|
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 |
setStartDateTime(ZonedDateTime startDateTime)
Sets the zoned date time (exclusive) to start looking for changes after.
|
void |
setStartFromBeginning(boolean startFromBeginning)
Set whether change feed should start from beginning (true) or from current (false).
|
getMaxItemCount, getPartitionKey, getPopulateQueryMetrics, getRequestContinuation, setMaxItemCount, setPartitionKey, setPopulateQueryMetrics, 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
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
public boolean isStartFromBeginning()
public void setStartFromBeginning(boolean startFromBeginning)
startFromBeginning
- a boolean value indicating change feed should start from beginning or notpublic ZonedDateTime getStartDateTime()
public void setStartDateTime(ZonedDateTime startDateTime)
startDateTime
- a zoned date time to start looking for changes after.Copyright © 2019. All rights reserved.