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 ChangeFeedProcessorBuilder.handleAllVersionsAndDeletesChanges(BiConsumer) lambda is invoked.

NOTE: This interface is not designed to be implemented by end users.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.