Class HandshakeFuture
java.lang.Object
org.apache.directory.ldap.client.api.future.HandshakeFuture
A Future to manage StartTLS handshake
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanflag to determine if this future is cancelled -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cancelled
protected boolean cancelledflag to determine if this future is cancelled
-
-
Constructor Details
-
HandshakeFuture
public HandshakeFuture()Creates a new instance of HandshakeFuture.
-
-
Method Details
-
cancel
public void cancel()Cancel the Future -
secured
public void secured()Set the Future to done when the TLS handshake has completed -
cancel
-
get
- Specified by:
getin interfaceFuture<Boolean>- Throws:
InterruptedExceptionExecutionException
-
get
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<Boolean>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<Boolean>
-
isDone
-
toString
-