Package org.forgerock.opendj.io
Interface LdapSocketAcceptor
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface LdapSocketAcceptor extends Closeable
An LDAP socket acceptor listens for incoming connections and binds them to anLdapSocket
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this LDAP socket acceptor.Options
getOptions()
Returns a copy of the options currently used by this LDAP listener.Set<InetSocketAddress>
getSocketAddresses()
Returns the addresses that this LDAP socket acceptor is listening on.boolean
setOptions​(Options newOptions)
Updates the options of this LDAP socket acceptor.
-
-
-
Method Detail
-
getSocketAddresses
Set<InetSocketAddress> getSocketAddresses()
Returns the addresses that this LDAP socket acceptor is listening on.- Returns:
- The addresses that this LDAP socket acceptor is listening on.
-
setOptions
boolean setOptions​(Options newOptions)
Updates the options of this LDAP socket acceptor. Most of the options will be applied only for next incoming connections, current connections will not impacted by this operation. Some options are not modifiable and will be ignored by this operation.- Parameters:
newOptions
- The LDAP socket acceptor options.- Returns:
true
if some or all options have been applied,false
if options cannot be changed.
-
getOptions
Options getOptions()
Returns a copy of the options currently used by this LDAP listener. Modifying the returned Options will have no impact until applied withsetOptions(Options)
.- Returns:
- The LDAP listener options.
-
close
void close()
Closes this LDAP socket acceptor.Calling this method on an acceptor that is already closed has no effect.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-