@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class StartAdministrativeSessionPostConnectProcessor extends java.lang.Object implements PostConnectProcessor, java.io.Serializable
AggregatePostConnectProcessor
), then the
start administrative session processor should generally be invoked first
(even before the
StartTLSPostConnectProcessor
) to ensure that
any interaction with the server will be able to make use of the dedicated
worker thread pool the server sets aside for operations using an
administrative session.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
StartAdministrativeSessionPostConnectProcessor(StartAdministrativeSessionExtendedRequest request)
Creates a new start administrative session post-connect processor that will
issue the provided extended request over a newly-established connection.
|
Modifier and Type | Method and Description |
---|---|
void |
processPostAuthenticatedConnection(LDAPConnection connection)
Performs any appropriate processing on the provided connection before
making it available for use in a connection pool.
|
void |
processPreAuthenticatedConnection(LDAPConnection connection)
Performs any appropriate processing on the provided connection before
making it available for use in a connection pool.
|
public StartAdministrativeSessionPostConnectProcessor(@NotNull StartAdministrativeSessionExtendedRequest request)
request
- The start administrative session extended request to be
invoked for newly-established connections.public void processPreAuthenticatedConnection(@NotNull LDAPConnection connection) throws LDAPException
processPreAuthenticatedConnection
in interface PostConnectProcessor
connection
- The connection for which the processing is to be
performed.LDAPException
- If a problem occurs during processing. If an
exception is thrown, then the connection will be
terminated and not used in the pool.public void processPostAuthenticatedConnection(@NotNull LDAPConnection connection) throws LDAPException
processPostAuthenticatedConnection
in interface PostConnectProcessor
connection
- The connection for which the processing is to be
performed.LDAPException
- If a problem occurs during processing. If an
exception is thrown, then the connection will be
terminated and not used in the pool.