Package org.ldaptive

Class LdapURLActivatorService


  • public final class LdapURLActivatorService
    extends java.lang.Object
    Singleton which manages a single thread that periodically tests inactive LDAP URLs.
    Author:
    Middleware Services
    • Method Detail

      • getInstance

        public static LdapURLActivatorService getInstance()
        Returns the instance of this singleton.
        Returns:
        LDAP URL activator service
      • getPeriod

        public static java.time.Duration getPeriod()
        Returns the activator period.
        Returns:
        activator period
      • registerUrl

        public void registerUrl​(LdapURL url)
        Registers an LDAP URL to be tested for activation. Once a URL becomes active it is automatically removed.
        Parameters:
        url - that is inactive and should be tested to become active
      • getInactiveUrls

        public java.util.List<LdapURL> getInactiveUrls()
        Returns the list of inactive urls.
        Returns:
        inactive urls
      • testInactiveUrls

        protected void testInactiveUrls()
        Tests each registered URL. Removes URLs that successfully activated.