ThriftFunction(AsyncProcessFunction<?, ?, ?> func) throws Exception { this(func.getMethodName(), func, Type.ASYNC, getResultType(func)); }
private static Class<TBase<TBase<?, ?>, TFieldIdEnum>> getResultType( AsyncProcessFunction<?, ?, ?> asyncFunc) { return getResultType0(Type.ASYNC, asyncFunc.getClass(), asyncFunc.getMethodName()); }