Class HandshakeFuture
- java.lang.Object
-
- org.apache.directory.ldap.client.api.future.HandshakeFuture
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancancelledflag to determine if this future is cancelled
-
Constructor Summary
Constructors Constructor Description HandshakeFuture()Creates a new instance of HandshakeFuture.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel the Futurebooleancancel(boolean mayInterruptIfRunning)Booleanget()Booleanget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()voidsecured()Set the Future to done when the TLS handshake has completedStringtoString()
-
-
-
Method Detail
-
cancel
public void cancel()
Cancel the Future
-
secured
public void secured()
Set the Future to done when the TLS handshake has completed
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public Boolean get() throws InterruptedException, ExecutionException
- 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>
-
-