public class AbstractOperation.ReopenOperationExceptionHandler extends AbstractRetryOperationExceptionHandler<Q,S>
Connection.reopen(BindRequest)
when an operation exception occurs and then
invokes the operation again.Modifier and Type | Field and Description |
---|---|
private BindRequest |
bindRequest
Bind request to use when reopening a connection.
|
logger
Constructor and Description |
---|
ReopenOperationExceptionHandler()
Default constructor.
|
ReopenOperationExceptionHandler(BindRequest request)
Creates a new reopen operation exception handler.
|
Modifier and Type | Method and Description |
---|---|
protected HandlerResult<Response<S>> |
createResult(Connection conn,
Q request,
Response<S> response)
|
protected void |
handleInternal(Connection conn,
Q request,
Response<S> response)
Perform any operations required to recover from the operation exception.
|
String |
toString() |
getRetry, getRetryBackoff, getRetryWait, handle, retry, setRetry, setRetryBackoff, setRetryWait
private final BindRequest bindRequest
public ReopenOperationExceptionHandler()
public ReopenOperationExceptionHandler(BindRequest request)
request
- to bind with on reopenprotected void handleInternal(Connection conn, Q request, Response<S> response) throws LdapException
AbstractRetryOperationExceptionHandler
handleInternal
in class AbstractRetryOperationExceptionHandler<Q extends Request,S>
conn
- connection the operation was executed onrequest
- executed by the operationresponse
- typically nullLdapException
- if the retry failsprotected HandlerResult<Response<S>> createResult(Connection conn, Q request, Response<S> response) throws LdapException
AbstractRetryOperationExceptionHandler
AbstractRetryOperationExceptionHandler.handleInternal(org.ldaptive.Connection, Q, org.ldaptive.Response<S>)
succeeded. Creates a response for the original invocation that failed.createResult
in class AbstractRetryOperationExceptionHandler<Q extends Request,S>
conn
- connection the operation was executed onrequest
- executed by the operationresponse
- typically nullLdapException
- if the operation failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.