Package org.apache.iotdb.itbase.runtime
Class ParallelRequestDelegate<T>
java.lang.Object
org.apache.iotdb.itbase.runtime.RequestDelegate<T>
org.apache.iotdb.itbase.runtime.ParallelRequestDelegate<T>
ParallelRequestDelegate will handle requests in parallel. It's more efficient when requests
contain network communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDo the requests which have been added, and return a list of their return values.Methods inherited from class org.apache.iotdb.itbase.runtime.RequestDelegate
addRequest, getEndpoints, getRequests, handleExceptions, requestAllAndCompare
-
Constructor Details
-
ParallelRequestDelegate
-
-
Method Details
-
requestAll
Description copied from class:RequestDelegateDo 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:
requestAllin classRequestDelegate<T>- Returns:
- the return values of all the request added in order.
- Throws:
SQLException- if any error happens during requesting.
-