Interface CDCService

  • All Known Implementing Classes:
    CDCClient

    public interface CDCService
    CDCService enables callers to track changes happening in a Neo4j database.
    • Method Detail

      • earliest

        reactor.core.publisher.Mono<ChangeIdentifier> earliest()
        Returns the change identifier for the earliest available change.
        Returns:
        change identifier
      • current

        reactor.core.publisher.Mono<ChangeIdentifier> current()
        Returns the change identifier for the last committed transaction.
        Returns:
        change identifier
      • query

        reactor.core.publisher.Flux<ChangeEvent> query​(ChangeIdentifier from)
        Returns the changes that happened to the database after the given change identifier. The returned Flux completes when we reach the end of change stream.
        Parameters:
        from - change identifier to query changes from.
        Returns:
        change events
      • stream

        reactor.core.publisher.Flux<ChangeEvent> stream​(ChangeIdentifier from)
        Returns the changes that happened to the database after the given change identifier. The returned Flux does not complete, and continues querying for new changes until the Flux subscription is closed.

        Change Data Capture feature currently does not support streaming, and this method mimics streaming through polling.

        Parameters:
        from - change identifier to query changes from.
        Returns:
        change events