Package org.elasticsearch.transport
Class PlainTransportFuture<V extends TransportResponse>
java.lang.Object
org.elasticsearch.common.util.concurrent.BaseFuture<V>
org.elasticsearch.transport.PlainTransportFuture<V>
- All Implemented Interfaces:
java.util.concurrent.Future<V>,Writeable.Reader<V>,TransportFuture<V>,TransportResponseHandler<V>
public class PlainTransportFuture<V extends TransportResponse> extends BaseFuture<V> implements TransportFuture<V>, TransportResponseHandler<V>
-
Constructor Summary
Constructors Constructor Description PlainTransportFuture(TransportResponseHandler<V> handler) -
Method Summary
Modifier and Type Method Description java.lang.Stringexecutor()voidhandleException(TransportException exp)voidhandleResponse(V response)Vread(StreamInput in)ReadV-type value from a stream.java.lang.StringtoString()VtxGet()Waits if necessary for the computation to complete, and then retrieves its result.VtxGet(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.BaseFuture
blockingAllowed, cancel, done, get, get, interruptTask, isCancelled, isDone, set, setException
-
Constructor Details
-
Method Details
-
txGet
Description copied from interface:TransportFutureWaits if necessary for the computation to complete, and then retrieves its result.- Specified by:
txGetin interfaceTransportFuture<V extends TransportResponse>
-
txGet
Description copied from interface:TransportFutureWaits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.- Specified by:
txGetin interfaceTransportFuture<V extends TransportResponse>
-
read
Description copied from interface:Writeable.ReaderReadV-type value from a stream.- Specified by:
readin interfaceWriteable.Reader<V extends TransportResponse>- Parameters:
in- Input to read the value from- Throws:
java.io.IOException
-
executor
public java.lang.String executor()- Specified by:
executorin interfaceTransportResponseHandler<V extends TransportResponse>
-
handleResponse
- Specified by:
handleResponsein interfaceTransportResponseHandler<V extends TransportResponse>
-
handleException
- Specified by:
handleExceptionin interfaceTransportResponseHandler<V extends TransportResponse>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-