类 AsyncClientHandler<Q,​R>

  • 类型参数:
    Q - ClassName of RPC request
    R - ClassName of RPC response

    public class AsyncClientHandler<Q,​R>
    extends java.lang.Object
    Asynchronous Client handler
    • 构造器详细资料

      • AsyncClientHandler

        public AsyncClientHandler​(DataNodeRequestType requestType)
        Custom constructor
      • AsyncClientHandler

        public AsyncClientHandler​(DataNodeRequestType requestType,
                                  java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap)
        Constructor for null requests
      • AsyncClientHandler

        public AsyncClientHandler​(DataNodeRequestType requestType,
                                  Q request,
                                  java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeLocation> dataNodeLocationMap)
        Constructor for unique request
    • 方法详细资料

      • putRequest

        public void putRequest​(int requestId,
                               Q request)
      • putDataNodeLocation

        public void putDataNodeLocation​(int requestId,
                                        org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocation)
      • getRequestIndices

        public java.util.List<java.lang.Integer> getRequestIndices()
      • getRequest

        public Q getRequest​(int requestId)
      • getDataNodeLocation

        public org.apache.iotdb.common.rpc.thrift.TDataNodeLocation getDataNodeLocation​(int requestId)
      • getResponseList

        public java.util.List<R> getResponseList()
      • getResponseMap

        public java.util.Map<java.lang.Integer,​R> getResponseMap()
      • resetCountDownLatch

        public void resetCountDownLatch()
        Always reset CountDownLatch before retry
      • getCountDownLatch

        public java.util.concurrent.CountDownLatch getCountDownLatch()
      • createAsyncRPCHandler

        public AbstractAsyncRPCHandler<?> createAsyncRPCHandler​(int requestId,
                                                                org.apache.iotdb.common.rpc.thrift.TDataNodeLocation targetDataNode)