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:
Future<V>,Writeable.Reader<V>,TransportFuture<V>,TransportResponseHandler<V>
public class PlainTransportFuture<V extends TransportResponse>
extends BaseFuture<V>
implements TransportFuture<V>, TransportResponseHandler<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.transport.TransportResponseHandler
TransportResponseHandler.Empty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutor()voidvoidhandleResponse(V response)read(StreamInput in)ReadV-type value from a stream.toString()txGet()Waits if necessary for the computation to complete, and then retrieves its result.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, setExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.transport.TransportResponseHandler
wrap
-
Constructor Details
-
PlainTransportFuture
-
-
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:
IOException
-
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
-