Class HandshakeFuture
- java.lang.Object
-
- org.apache.directory.ldap.client.api.future.HandshakeFuture
-
public class HandshakeFuture extends Object implements Future<Boolean>
A Future to manage StartTLS handshake- Author:
- Apache Directory Project
-
-
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 void
cancel()
Cancel the Futureboolean
cancel(boolean mayInterruptIfRunning)
Boolean
get()
Boolean
get(long timeout, TimeUnit unit)
boolean
isCancelled()
boolean
isDone()
void
secured()
Set the Future to done when the TLS handshake has completedString
toString()
-
-
-
Constructor Detail
-
HandshakeFuture
public HandshakeFuture()
Creates a new instance of HandshakeFuture.
-
-
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:
get
in interfaceFuture<Boolean>
- Throws:
InterruptedException
ExecutionException
-
get
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
get
in interfaceFuture<Boolean>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<Boolean>
-
-