R
- The result type returned by this Future's get methodpublic interface ResponseFuture<R extends Response> extends Future<R>
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the Future
|
Throwable |
getCause() |
void |
set(R response)
Set the associated Response in this Future
|
void |
setCause(Throwable cause)
Associate a cause to the ResponseFuture
|
void set(R response) throws InterruptedException
response
- The response to add into the FutureInterruptedException
- if the operation has been cancelled by clientvoid setCause(Throwable cause)
cause
- the cause to setvoid cancel()
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.