All Downloads are FREE. Search and download functionalities are using the official Maven repository.

link.jfire.socket.socketserver.bus.MessageHandlerCenter Maven / Gradle / Ivy

Go to download

Jfire - socket is a server-side framework based on AIO. Users only need a simple implementation of a business logic processing interface can be the business data processing. The framework provides the client and server at the same time. Have strong connection capacity. Single server provides tens of thousands of connections.

The newest version!
package link.jfire.socket.socketserver.bus;

import java.util.List;
import link.jfire.socket.socketserver.handler.MessageHandler;
import link.jfire.socket.socketserver.interceptor.MessageInterceptor;

/**
 * 请求信息处理中心
 * 
 * @author 林斌
 * 
 */
public interface MessageHandlerCenter extends Runnable
{
    /**
     * 将消息传递给处理中心
     * 
     * @param message
     */
    public void offerMessage(Message message);
    
    /**
     * 停止处理中心
     */
    public void stop();
    
    /**
     * 初始化处理中心
     */
    public void init();
    
    /**
     * 获取所有的消息处理器
     * 
     * @return
     */
    public List getHandlerList();
    
    public List getInterceptorList();
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy