Package org.opensearch.transport
Class PlainTransportFuture<V extends org.opensearch.core.transport.TransportResponse>
java.lang.Object
org.opensearch.common.util.concurrent.BaseFuture<V>
org.opensearch.transport.PlainTransportFuture<V>
- All Implemented Interfaces:
Future<V>
,org.opensearch.core.common.io.stream.Writeable.Reader<V>
,TransportFuture<V>
,TransportResponseHandler<V>
public class PlainTransportFuture<V extends org.opensearch.core.transport.TransportResponse>
extends BaseFuture<V>
implements TransportFuture<V>, TransportResponseHandler<V>
Future for transporting data
- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutor()
void
void
handleResponse
(V response) read
(org.opensearch.core.common.io.stream.StreamInput in) 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.opensearch.common.util.concurrent.BaseFuture
blockingAllowed, cancel, done, get, get, interruptTask, isCancelled, isDone, set, setException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.transport.TransportResponseHandler
handleRejection, wrap
-
Constructor Details
-
PlainTransportFuture
-
-
Method Details
-
txGet
Description copied from interface:TransportFuture
Waits if necessary for the computation to complete, and then retrieves its result.- Specified by:
txGet
in interfaceTransportFuture<V extends org.opensearch.core.transport.TransportResponse>
-
txGet
Description copied from interface:TransportFuture
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.- Specified by:
txGet
in interfaceTransportFuture<V extends org.opensearch.core.transport.TransportResponse>
-
read
- Specified by:
read
in interfaceorg.opensearch.core.common.io.stream.Writeable.Reader<V extends org.opensearch.core.transport.TransportResponse>
- Throws:
IOException
-
executor
- Specified by:
executor
in interfaceTransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
-
handleResponse
- Specified by:
handleResponse
in interfaceTransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
-
handleException
- Specified by:
handleException
in interfaceTransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
-
toString
-