com.eshore.socketapi.server.ServerHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-suite Show documentation
Show all versions of proxy-suite Show documentation
a Intranet-through project
package com.eshore.socketapi.server;
import com.eshore.socketapi.commons.Action;
/**
* 处理客户端请求
* @author eshore
*
*/
public interface ServerHandler {
/**
* 处理客户端请求
* @param a 客户端请求
* @param worker 与客户端保持会话的工作类
* @return 处理结果
*/
Action handle(Action a,ClientWorker worker);
/**
* 当发生错误时
* @param a action
* @param worker
*/
void onError(Action a,ClientWorker worker);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy