@Beta(value=V4_4_0, warningText="Preview API - subject to change in non-backwards compatible way") public class ChangeFeedProcessorState extends Object
ChangeFeedProcessor
state for a particular lease/worker.Constructor and Description |
---|
ChangeFeedProcessorState() |
Modifier and Type | Method and Description |
---|---|
String |
getContinuationToken()
Gets a marker representing the last item that was processed.
|
int |
getEstimatedLag()
Gets an approximation of the difference between the last processed item in the feed container and the
latest change recorded.
|
String |
getHostName()
Gets the name of the host which operates on the lease item.
|
String |
getLeaseToken()
Gets the token of the lease item representing the persistent state of a change feed processor worker.
|
ChangeFeedProcessorState |
setContinuationToken(String continuationToken)
Sets a marker representing the last item that was processed.
|
ChangeFeedProcessorState |
setEstimatedLag(int estimatedLag)
Sets the estimated lag.
|
ChangeFeedProcessorState |
setHostName(String hostName)
Sets the name of the host which operates on the lease item.
|
ChangeFeedProcessorState |
setLeaseToken(String leaseToken)
Sets the token of the lease item representing the persistent state of a change feed processor worker.
|
public String getLeaseToken()
A lease token is a unique identifier representing a specific scope that a CFP worker will operate on.
public ChangeFeedProcessorState setLeaseToken(String leaseToken)
A lease token is a unique identifier representing a specific scope that a CFP worker will operate on.
leaseToken
- a unique string representing a specific scope that a CFP worker will operate on.public String getHostName()
When using multiple CFP instances distributing the work for a given feed container, each host must have a unique name.
public ChangeFeedProcessorState setHostName(String hostName)
When using multiple CFP instances distributing the work for a given feed container, each host must have a unique name.
hostName
- the host name that has ownership of this lease item.public String getContinuationToken()
public ChangeFeedProcessorState setContinuationToken(String continuationToken)
continuationToken
- the marker representing the last item that was processed.public int getEstimatedLag()
public ChangeFeedProcessorState setEstimatedLag(int estimatedLag)
estimatedLag
- the estimated lag.Copyright © 2021 Microsoft Corporation. All rights reserved.