|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.util.concurrent.AbstractFuture<V>
org.elasticsearch.transport.PlainTransportFuture<V>
public class PlainTransportFuture<V extends Streamable>
Constructor Summary | |
---|---|
PlainTransportFuture(TransportResponseHandler<V> handler)
|
Method Summary | |
---|---|
void |
handleException(TransportException exp)
|
void |
handleResponse(V response)
|
V |
newInstance()
creates a new instance of the return type from the remote call. |
boolean |
spawn()
|
V |
txGet()
Waits if necessary for the computation to complete, and then retrieves its result. |
V |
txGet(long timeout,
java.util.concurrent.TimeUnit unit)
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
Methods inherited from class org.elasticsearch.common.util.concurrent.AbstractFuture |
---|
cancel, cancel, done, get, get, isCancelled, isDone, set, setException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.concurrent.Future |
---|
cancel, get, get, isCancelled, isDone |
Constructor Detail |
---|
public PlainTransportFuture(TransportResponseHandler<V> handler)
Method Detail |
---|
public V txGet() throws ElasticSearchException
TransportFuture
txGet
in interface TransportFuture<V extends Streamable>
ElasticSearchException
public V txGet(long timeout, java.util.concurrent.TimeUnit unit) throws ElasticSearchException
TransportFuture
txGet
in interface TransportFuture<V extends Streamable>
ElasticSearchException
public V newInstance()
TransportResponseHandler
newInstance
in interface TransportResponseHandler<V extends Streamable>
public void handleResponse(V response)
handleResponse
in interface TransportResponseHandler<V extends Streamable>
public void handleException(TransportException exp)
handleException
in interface TransportResponseHandler<V extends Streamable>
public boolean spawn()
spawn
in interface TransportResponseHandler<V extends Streamable>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |