Package com.alibaba.otter.shared.communication.core.impl

Examples of com.alibaba.otter.shared.communication.core.impl.DefaultCommunicationClientImpl


        DubboCommunicationEndpoint endpoint2089 = new DubboCommunicationEndpoint(2089);
        endpoint2089.initial();

        CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
        client = new DefaultCommunicationClientImpl(factory);
        client.initial();
    }
View Full Code Here


        endpoint1098.initial();

        CommunicationConnectionPoolFactory factory = new CommunicationConnectionPoolFactory(
                                                                                            new RmiCommunicationConnectionFactory());
        factory.initial();
        client = new DefaultCommunicationClientImpl(factory);
        client.initial();
    }
View Full Code Here

     * 注意:该方法为异步调用
     * </pre>
     */
    public void callManager(final Event event, final Callback callback) {
        if (delegate instanceof DefaultCommunicationClientImpl) {
            DefaultCommunicationClientImpl defaultClient = (DefaultCommunicationClientImpl) delegate;
            defaultClient.submit(new Runnable() {

                @Override
                public void run() {
                    Object result = callManager(event);
                    callback.call(result);
View Full Code Here

     * 注意:该方法为异步调用
     * </pre>
     */
    public void callManager(final Event event, final Callback callback) {
        if (delegate instanceof DefaultCommunicationClientImpl) {
            DefaultCommunicationClientImpl defaultClient = (DefaultCommunicationClientImpl) delegate;
            defaultClient.submit(new Runnable() {

                @Override
                public void run() {
                    Object result = callManager(event);
                    callback.call(result);
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.communication.core.impl.DefaultCommunicationClientImpl

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.