public class BindFuture extends ResponseFuture<BindResponse>
cancelled, connection, messageId, queue
Constructor and Description |
---|
BindFuture(LdapConnection connection,
int messageId)
Creates a new instance of BindFuture.
|
Modifier and Type | Method and Description |
---|---|
BindResponse |
get()
Get the BindResponse, blocking until one is received.
|
BindResponse |
get(long timeout,
TimeUnit unit)
Get the BindResponse, blocking until one is received, or until the
given timeout is reached.
|
String |
toString() |
cancel, isCancelled, isDone, set
public BindFuture(LdapConnection connection, int messageId)
connection
- The LdapConnectionmessageId
- The associated messageIdpublic BindResponse get() throws InterruptedException, ExecutionException
get
in interface Future<BindResponse>
get
in class ResponseFuture<BindResponse>
InterruptedException
- if the operation has been cancelled by clientExecutionException
public BindResponse get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<BindResponse>
get
in class ResponseFuture<BindResponse>
timeout
- Number of TimeUnit to waitunit
- The TimeUnitInterruptedException
- if the operation has been cancelled by clientExecutionException
TimeoutException
public String toString()
toString
in class ResponseFuture<BindResponse>
Copyright © 2009–2015 The Apache Software Foundation. All rights reserved.