Package org.ldaptive.transport.netty
Class NettyConnection.BindOperationHandle
- java.lang.Object
-
- org.ldaptive.transport.DefaultOperationHandle<BindRequest,BindResponse>
-
- org.ldaptive.transport.netty.NettyConnection.BindOperationHandle
-
- All Implemented Interfaces:
OperationHandle<BindRequest,BindResponse>
- Enclosing class:
- NettyConnection
public class NettyConnection.BindOperationHandle extends DefaultOperationHandle<BindRequest,BindResponse>
Bind specific operation handle that locks other operations until the bind completes.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.transport.DefaultOperationHandle
logger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindResponseawait()Waits for a result or reports a timeout exception.BindResponseexecute()Convenience method that invokesOperationHandle.send()followed byOperationHandle.await().NettyConnection.BindOperationHandlesend()Sends this request to the server.-
Methods inherited from class org.ldaptive.transport.DefaultOperationHandle
abandon, abandon, cancel, consumedMessage, control, exception, getMessageID, getOnComplete, getOnControl, getOnException, getOnIntermediate, getOnReferral, getOnResult, getOnUnsolicitedNotification, getReceivedTime, getRequest, getSentTime, getThrowCondition, hasConsumedMessage, initializeMessageFunctional, intermediate, messageID, onComplete, onControl, onException, onIntermediate, onReferral, onResult, onUnsolicitedNotification, referral, result, sent, throwIf, toString, unsolicitedNotification
-
-
-
-
Method Detail
-
send
public NettyConnection.BindOperationHandle send()
Description copied from interface:OperationHandleSends this request to the server.- Specified by:
sendin interfaceOperationHandle<BindRequest,BindResponse>- Overrides:
sendin classDefaultOperationHandle<BindRequest,BindResponse>- Returns:
- this handle
-
await
public BindResponse await()
Description copied from interface:OperationHandleWaits for a result or reports a timeout exception.- Specified by:
awaitin interfaceOperationHandle<BindRequest,BindResponse>- Overrides:
awaitin classDefaultOperationHandle<BindRequest,BindResponse>- Returns:
- result of the operation or empty if the operation is abandoned
-
execute
public BindResponse execute() throws LdapException
Description copied from interface:OperationHandleConvenience method that invokesOperationHandle.send()followed byOperationHandle.await(). Provides a single method to make a synchronous request.- Returns:
- result of the operation or empty if the operation is abandoned
- Throws:
LdapException- if an error occurs executing the request
-
-