Package com.azure.cosmos
Interface ChangeFeedProcessorContext
@Beta(value=V4_51_0,
warningText="Preview API - subject to change in non-backwards compatible way")
public interface ChangeFeedProcessorContext
Encapsulates properties which are mapped to a batch of change feed documents
processed when
NOTE: This interface is not designed to be implemented by end users.
ChangeFeedProcessorBuilder.handleAllVersionsAndDeletesChanges(BiConsumer)
lambda is invoked.
NOTE: This interface is not designed to be implemented by end users.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CosmosDiagnosticsContext
Get the diagnostics context from the underlying feed response.Gets the lease token corresponding to the source of a batch of change feed documents.
-
Method Details
-
getLeaseToken
@Beta(value=V4_51_0, warningText="Preview API - subject to change in non-backwards compatible way") String getLeaseToken()Gets the lease token corresponding to the source of a batch of change feed documents.- Returns:
- the lease token
-
getDiagnostics
@Beta(value=V4_64_0, warningText="Preview API - subject to change in non-backwards compatible way") default CosmosDiagnosticsContext getDiagnostics()Get the diagnostics context from the underlying feed response.- Returns:
- The diagnostics object.
-