Example usage for org.apache.thrift AsyncProcessFunction getMethodName

List of usage examples for org.apache.thrift AsyncProcessFunction getMethodName

Introduction

In this page you can find the example usage for org.apache.thrift AsyncProcessFunction getMethodName.

Prototype

public String getMethodName() 

Source Link

Usage

From source file:com.linecorp.armeria.internal.thrift.ThriftFunction.java

License:Apache License

ThriftFunction(Class<?> serviceType, AsyncProcessFunction<?, ?, ?> func) throws Exception {
    this(serviceType, func.getMethodName(), func, Type.ASYNC, getArgFields(func), getResult(func),
            getDeclaredExceptions(func));
}

From source file:com.linecorp.armeria.internal.thrift.ThriftFunction.java

License:Apache License

private static TBase<TBase<?, ?>, TFieldIdEnum> getResult(AsyncProcessFunction<?, ?, ?> asyncFunc) {
    return getResult0(Type.ASYNC, asyncFunc.getClass(), asyncFunc.getMethodName());
}

From source file:com.linecorp.armeria.internal.thrift.ThriftFunction.java

License:Apache License

private static TBase<TBase<?, ?>, TFieldIdEnum> getArgs(AsyncProcessFunction<?, ?, ?> asyncFunc) {
    return getArgs0(Type.ASYNC, asyncFunc.getClass(), asyncFunc.getMethodName());
}

From source file:com.linecorp.armeria.internal.thrift.ThriftFunction.java

License:Apache License

private static TFieldIdEnum[] getArgFields(AsyncProcessFunction<?, ?, ?> asyncFunc) {
    return getArgFields0(Type.ASYNC, asyncFunc.getClass(), asyncFunc.getMethodName());
}

From source file:com.linecorp.armeria.internal.thrift.ThriftFunction.java

License:Apache License

private static Class<?>[] getDeclaredExceptions(AsyncProcessFunction<?, ?, ?> asyncFunc) {
    return getDeclaredExceptions0(Type.ASYNC, asyncFunc.getClass(), asyncFunc.getMethodName());
}

From source file:com.linecorp.armeria.server.thrift.ThriftFunction.java

License:Apache License

ThriftFunction(AsyncProcessFunction<?, ?, ?> func) throws Exception {
    this(func.getMethodName(), func, Type.ASYNC, getResultType(func));
}

From source file:com.linecorp.armeria.server.thrift.ThriftFunction.java

License:Apache License

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