Class PersistentSearchClient


  • public class PersistentSearchClient
    extends java.lang.Object
    Client that simplifies using the persistent search control.
    Author:
    Middleware Services
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger for this class.
    • Constructor Detail

      • PersistentSearchClient

        public PersistentSearchClient​(ConnectionFactory cf,
                                      java.util.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
    • Method Detail

      • setOnEntry

        public void setOnEntry​(java.util.function.Consumer<LdapEntry> consumer)
        Sets the onEntry consumer.
        Parameters:
        consumer - to invoke when an entry is received
      • setOnResult

        public void setOnResult​(java.util.function.Consumer<Result> consumer)
        Sets the onResult consumer.
        Parameters:
        consumer - to invoke when a result is received
      • setOnException

        public void setOnException​(java.util.function.Consumer<java.lang.Exception> consumer)
        Sets the onException consumer.
        Parameters:
        consumer - to invoke when a sync info message is received
      • abandon

        public void abandon()
        Invokes an abandon operation on the search handle.