Search in sources :

Example 1 with ChannelEventRunnable

use of com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable in project dubbo by alibaba.

the class ConnectionOrderedChannelHandler method connected.

public void connected(Channel channel) throws RemotingException {
    try {
        checkQueueLength();
        connectionExecutor.execute(new ChannelEventRunnable(channel, handler, ChannelState.CONNECTED));
    } catch (Throwable t) {
        throw new ExecutionException("connect event", channel, getClass() + " error when process connected event .", t);
    }
}
Also used : ChannelEventRunnable(com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable) ExecutionException(com.alibaba.dubbo.remoting.ExecutionException) RejectedExecutionException(java.util.concurrent.RejectedExecutionException)

Example 2 with ChannelEventRunnable

use of com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable in project dubbo by alibaba.

the class ConnectionOrderedChannelHandler method disconnected.

public void disconnected(Channel channel) throws RemotingException {
    try {
        checkQueueLength();
        connectionExecutor.execute(new ChannelEventRunnable(channel, handler, ChannelState.DISCONNECTED));
    } catch (Throwable t) {
        throw new ExecutionException("disconnected event", channel, getClass() + " error when process disconnected event .", t);
    }
}
Also used : ChannelEventRunnable(com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable) ExecutionException(com.alibaba.dubbo.remoting.ExecutionException) RejectedExecutionException(java.util.concurrent.RejectedExecutionException)

Aggregations

ExecutionException (com.alibaba.dubbo.remoting.ExecutionException)2 ChannelEventRunnable (com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable)2 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)2