ChangeFeedProcessorContext Interface

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 and Description
default CosmosDiagnosticsContext getDiagnostics()

Get the diagnostics context from the underlying feed response.

abstract String getLeaseToken()

Gets the lease token corresponding to the source of a batch of change feed documents.

Method Details

getDiagnostics

public default CosmosDiagnosticsContext getDiagnostics()

Get the diagnostics context from the underlying feed response.

Returns:

The diagnostics object.

getLeaseToken

public abstract String getLeaseToken()

Gets the lease token corresponding to the source of a batch of change feed documents.

Returns:

the lease token

Applies to