public class HandshakeFuture extends Object implements Future<Boolean>
Constructor and Description |
---|
HandshakeFuture()
Creates a new instance of HandshakeFuture.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the Future
|
boolean |
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 completed
|
String |
toString() |
public HandshakeFuture()
connection
- the LDAP connectionmessageId
- The associated messageIdpublic void cancel()
public void secured()
InterruptedException
- if the operation has been cancelled by clientpublic boolean cancel(boolean mayInterruptIfRunning)
public Boolean get() throws InterruptedException, ExecutionException
get
in interface Future<Boolean>
InterruptedException
ExecutionException
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Boolean>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<Boolean>
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.