ChangeFeedProcessorState Class
- java.
lang. Object - com.
azure. cosmos. models. ChangeFeedProcessorState
- com.
public class ChangeFeedProcessorState
Specifies the ChangeFeedProcessor state for a particular lease/worker.
Constructor Summary
Constructor | Description | |
---|---|---|
ChangeFeedProcessorState() |
Method Summary
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. |
Change |
setContinuationToken(String continuationToken)
Sets a marker representing the last item that was processed. |
Change |
setEstimatedLag(int estimatedLag)
Sets the estimated lag. |
Change |
setHostName(String hostName)
Sets the name of the host which operates on the lease item. |
Change |
setLeaseToken(String leaseToken)
Sets the token of the lease item representing the persistent state of a change feed processor worker. |
Methods inherited from java.lang.Object
Constructor Details
ChangeFeedProcessorState
public ChangeFeedProcessorState()
Method Details
getContinuationToken
public String getContinuationToken()
Gets a marker representing the last item that was processed.
Returns:
getEstimatedLag
public int getEstimatedLag()
Gets an approximation of the difference between the last processed item in the feed container and the latest change recorded.
Returns:
getHostName
public String getHostName()
Gets the name of the host which operates on the lease item.
When using multiple CFP instances distributing the work for a given feed container, each host must have a unique name.
Returns:
getLeaseToken
public String getLeaseToken()
Gets the token of the lease item representing the persistent state of a change feed processor worker.
A lease token is a unique identifier representing a specific scope that a CFP worker will operate on.
Returns:
setContinuationToken
public ChangeFeedProcessorState setContinuationToken(String continuationToken)
Sets a marker representing the last item that was processed.
Parameters:
Returns:
setEstimatedLag
public ChangeFeedProcessorState setEstimatedLag(int estimatedLag)
Sets the estimated lag.
Parameters:
Returns:
setHostName
public ChangeFeedProcessorState setHostName(String hostName)
Sets the name of the host which operates on the lease item.
When using multiple CFP instances distributing the work for a given feed container, each host must have a unique name.
Parameters:
Returns:
setLeaseToken
public ChangeFeedProcessorState setLeaseToken(String leaseToken)
Sets the token of the lease item representing the persistent state of a change feed processor worker.
A lease token is a unique identifier representing a specific scope that a CFP worker will operate on.
Parameters:
Returns: