Class PersistentSearchClient


  • public class PersistentSearchClient
    extends Object
    Client that simplifies using the persistent search control.
    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • factory

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

        private final boolean changesOnly
        Whether to return only changed entries.
      • returnEcs

        private final boolean returnEcs
        Whether to return an Entry Change Notification control.
      • onResult

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

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

      • PersistentSearchClient

        public PersistentSearchClient​(ConnectionFactory cf,
                                      EnumSet<PersistentSearchChangeType> types,
                                      boolean co,
                                      boolean re)
        Creates a new persistent search client.
        Parameters:
        cf - to get a connection from
        types - persistent search change types
        co - whether only changed entries are returned
        re - return an Entry Change Notification control