Class SyncReplClient


  • public class SyncReplClient
    extends Object
    Client that simplifies using the sync repl control.
    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • factory

        private final ConnectionFactory factory
        Connection factory to get a connection from.
      • refreshAndPersist

        private final boolean refreshAndPersist
        Controls which mode the sync repl control should use.
      • reloadHint

        private final boolean reloadHint
        Controls the sync repl request reload hint.
      • onResult

        private Consumer<Result> onResult
        Invoked when a result is received.
      • onException

        private Consumer<Exception> onException
        Invoked when an exception is received.
      • receivedResult

        private boolean receivedResult
        Whether the sync repl search has received a result response.
    • Constructor Detail

      • SyncReplClient

        public SyncReplClient​(ConnectionFactory cf,
                              boolean persist)
        Creates a new sync repl client.
        Parameters:
        cf - to get a connection from
        persist - whether to refresh and persist or just refresh
      • SyncReplClient

        public SyncReplClient​(ConnectionFactory cf,
                              boolean persist,
                              boolean hint)
        Creates a new sync repl client.
        Parameters:
        cf - to get a connection from
        persist - whether to refresh and persist or just refresh
        hint - sync repl request reload hint