
com.hc360.rsf.remoting.HandlerDelegate Maven / Gradle / Ivy
The newest version!
/**
* HandlerDelegate.java 2012-5-10
* Copyright(c) 2000-2012 HC360.COM, All Rights Reserved.
*/
package com.hc360.rsf.remoting;
/**
*
* 链式代理类
*
* 目前共实现了4层代理,一层调一层
*
* Mina,netty的Handler的抽象
*
* @author zhaolei 2012-5-7
*/
public interface HandlerDelegate {
/**
* on channel connected.
*
* @param channel channel.
*/
void connected(Channel channel) throws RemotingException;
/**
* on channel disconnected.
*
* @param channel channel.
*/
void disconnected(Channel channel) throws RemotingException;
/**
* on message sent.
*
* @param channel channel.
* @param message message.
*/
void sent(Channel channel, Object message) throws RemotingException;
/**
* on message received.
*
* @param channel channel.
* @param message message.
*/
void received(Channel channel, Object message) throws RemotingException;
/**
* on exception caught.
*
* @param channel channel.
* @param exception exception.
*/
void caught(Channel channel, Throwable exception) throws RemotingException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy