public class PlainTransportFuture<V extends TransportResponse> extends BaseFuture<V> implements TransportFuture <V>, TransportResponseHandler <V>
| Constructor and Description |
|---|
PlainTransportFuture(TransportResponseHandler
|
| Modifier and Type | Method and Description |
|---|---|
String |
executor()
|
void |
handleException(TransportException
|
void |
handleResponse(V response)
|
V |
newInstance()
creates a new instance of the return type from the remote call.
|
String |
toString()
|
V |
txGet()
Waits if necessary for the computation to complete, and then retrieves its result.
|
V |
txGet(long timeout, TimeUnit
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
|
cancel, done, get, get, interruptTask, isCancelled, isDone, set, setExceptionpublic PlainTransportFuture(TransportResponseHandler<V> handler)
public V txGet() throws ElasticsearchException
TransportFuture
txGet in interface
TransportFuture<V extends TransportResponse>
ElasticsearchException
public V txGet(long timeout, TimeUnitunit) throws ElasticsearchException
TransportFuture
txGet in interface
TransportFuture<V extends TransportResponse>
ElasticsearchException
public V newInstance()
TransportResponseHandler
newInstance in interface
TransportResponseHandler<V extends TransportResponse>
public Stringexecutor()
public void handleResponse(V response)
public void handleException(TransportExceptionexp)
public StringtoString()