Package com.alibaba.asyncload.impl.pool

Examples of com.alibaba.asyncload.impl.pool.AsyncLoadCallable


        } else if (returnClass == Object.class) {
            // 针对返回对象是Object类型,不做代理。没有具体的method,代理没任何意义
            return callback.doAsyncLoad();
        } else {
            final AsyncLoadConfig copy = config;
            Future<R> future = executor.submit(new AsyncLoadCallable() {

                public R call() throws Exception {
                    return callback.doAsyncLoad();
                }
View Full Code Here


                return finMethod.invoke(finObj, finArgs);
            } else if (returnClass == Object.class) {
                // 针对返回对象是Object类型,不做代理。没有具体的method,代理没任何意义
                return finMethod.invoke(finObj, finArgs);
            } else {
                Future future = executor.submit(new AsyncLoadCallable() {

                    public Object call() throws Exception {
                        try {
                            return finMethod.invoke(finObj, finArgs);// 需要直接委托对应的finObj(service)进行处理
                        } catch (Throwable e) {
View Full Code Here

TOP

Related Classes of com.alibaba.asyncload.impl.pool.AsyncLoadCallable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.