package com.hmsoft.remote.rmi.handler;

import com.hmsoft.remote.rmi.exception.RemotingException;
import com.hmsoft.remote.rmi.transport.NettyChannel;

/**
 * 
 * ExchangeHandler
 *
 */
public interface ExchangeHandler extends ChannelHandler {

    /**
     * reply.
     * 
     * @param channel
     * @param request
     * @return response
     * @throws RemotingException
     */
    Object reply(NettyChannel channel, Object request) throws RemotingException;
}
