📄 sessionhandler.java
字号:
/****************************************************************************
* Package : com.ecSolutions.ecAppServer.server
* File : SessionHandler.java
* Create Date : 2007-7-20
* Author : Steven Chen
*
* Copyright(C) 2006 ecSolutions(shanghai) Co.,Limited.All Rights Reserved.
*
***************************************************************************/
package com.ecSolutions.ecAppServer.server;
/**
* <code>Session</code> handler.
*
* @author Steven Chen
* @version $Id: SessionHandler.java,v 1.2 2007/07/26 04:10:42 stevenchen Exp $
*/
public interface SessionHandler {
/**
* Session have started.
*
* @param session
* session
* @throws Exception
* any exception
*/
void sessionStarted(Session session) throws Exception;
/**
* Session have closed.
*
* @param session
* session
* @throws Exception
* any exception
*/
void sessionClosed(Session session) throws Exception;
/**
* Session timeout, but not closed.
*
* @param session
* session
* @throws Exception
* any exception
*/
void sessionTimeout(Session session) throws Exception;
/**
* Session received a object which is decoded by <code>PacketDecoder</code>.
*
* @param session
* session
* @param obj
* object
* @throws Exception
* any exception
*/
void objectReceived(Session session, Object obj) throws Exception;
/**
* Session sent a object.
*
* @param session
* session
* @param obj
* object
* @throws Exception
* any exception
*/
void objectSent(Session session, Object obj) throws Exception;
/**
* Session caught a exception.
*
* @param session
* session
* @param cause
* exception
*/
void exceptionCaught(Session session, Throwable cause);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -