public abstract class CallableRequestDispatch extends RequestDispatch implements Callable<Response>
RequestDispatch
that implements the Callable
interface. This
should be used in place of RequestDispatch
if you intend to schedule its execution. Because call()
does not return until a Response
becomes available, you can use the Future return value of
ExecutorService.submit(Callable) to wait for it.Constructor and Description |
---|
CallableRequestDispatch() |
Modifier and Type | Method and Description |
---|---|
Response |
call() |
addListener, cancel, connect, connectFastWriter, dispatch, get, get, handleResponse, isCancelled, isDone, newRequest, requestContent
Copyright © 2018. All rights reserved.