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 Details

  • Method Details

    • txGet

      public V txGet()
      Description copied from interface: TransportFuture
      Waits if necessary for the computation to complete, and then retrieves its result.
      Specified by:
      txGet in interface TransportFuture<V extends org.opensearch.core.transport.TransportResponse>
    • txGet

      public V txGet(long timeout, TimeUnit unit)
      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 interface TransportFuture<V extends org.opensearch.core.transport.TransportResponse>
    • read

      public V read(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Specified by:
      read in interface org.opensearch.core.common.io.stream.Writeable.Reader<V extends org.opensearch.core.transport.TransportResponse>
      Throws:
      IOException
    • executor

      public String executor()
      Specified by:
      executor in interface TransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
    • handleResponse

      public void handleResponse(V response)
      Specified by:
      handleResponse in interface TransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
    • handleException

      public void handleException(TransportException exp)
      Specified by:
      handleException in interface TransportResponseHandler<V extends org.opensearch.core.transport.TransportResponse>
    • toString

      public String toString()
      Overrides:
      toString in class Object