Class ParallelRequestDelegate<T>

java.lang.Object
org.apache.iotdb.itbase.runtime.RequestDelegate<T>
org.apache.iotdb.itbase.runtime.ParallelRequestDelegate<T>

public class ParallelRequestDelegate<T> extends RequestDelegate<T>
ParallelRequestDelegate will handle requests in parallel. It's more efficient when requests contain network communication.
  • Constructor Details

    • ParallelRequestDelegate

      public ParallelRequestDelegate(List<String> endpoints, int taskTimeoutSeconds)
  • Method Details

    • requestAll

      public List<T> requestAll() throws SQLException
      Description copied from class: RequestDelegate
      Do the requests which have been added, and return a list of their return values. If some exception throws from the request, the exception thrown by each request will be compared and be thrown if they are even, or an InconsistentDataException.
      Specified by:
      requestAll in class RequestDelegate<T>
      Returns:
      the return values of all the request added in order.
      Throws:
      SQLException - if any error happens during requesting.