| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancelled
flag to determine if this future is cancelled
|
private boolean |
done
A flag set to TRUE when the handshake has been completed
|
| 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() |
private volatile boolean done
protected boolean cancelled
public HandshakeFuture()
public void cancel()
public void secured()
public boolean cancel(boolean mayInterruptIfRunning)
public Boolean get() throws InterruptedException, ExecutionException
get in interface Future<Boolean>InterruptedExceptionExecutionExceptionpublic Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Boolean>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<Boolean>Copyright © 2009–2019 The Apache Software Foundation. All rights reserved.