Class ChangeFeedEncryptionProcessorBuilder

java.lang.Object
com.azure.cosmos.encryption.ChangeFeedEncryptionProcessorBuilder

public final class ChangeFeedEncryptionProcessorBuilder extends Object
Helper class to build a ChangeFeedProcessor instance for encryption feed container.
 ChangeFeedProcessor changeFeedProcessor = new ChangeFeedProcessorBuilder()
     .hostName(hostName)
     .feedContainer(feedContainer) // CosmosEncryptionAsyncContainer
     .leaseContainer(leaseContainer)
     .handleChanges(docs -> {
         for (JsonNode item : docs) {
             // Implementation for handling and processing of each JsonNode item goes here
         }
     })
     .buildChangeFeedProcessor();