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

Examples of com.alibaba.otter.shared.communication.core.exception.CommunicationException


    public void releaseConnection(CommunicationConnection connection) {
        try {
            pool.returnObject(connection.getParams(), connection);
        } catch (Exception e) {
            throw new CommunicationException("releaseConnection_error", e);
        }
    }
View Full Code Here


    /**
     * 指定manager,进行event调用
     */
    public Object callManager(final Event event) {
        CommunicationException ex = null;
        for (int i = index; i < index + managerAddress.size(); i++) {
            String address = managerAddress.get(i % managerAddress.size());
            try {
                Object result = delegate.call(address, event);
                index = i;
View Full Code Here

    /**
     * 指定manager,进行event调用
     */
    public Object callManager(final Event event) {
        CommunicationException ex = null;
        Object object = null;
        for (int i = index; i < index + managerAddress.size(); i++) { // 循环一次manager的所有地址
            String address = managerAddress.get(i % managerAddress.size());
            try {
                object = delegate.call(address, event);
View Full Code Here

    /**
     * 指定manager,进行event调用
     */
    public Object callManager(final Event event) {
        CommunicationException ex = null;
        for (int i = index; i < index + managerAddress.size(); i++) {
            String address = managerAddress.get(i % managerAddress.size());
            try {
                Object result = delegate.call(address, event);
                index = i;
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.communication.core.exception.CommunicationException

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.