CONNECTION_HOLDER - 连接持有者类型public abstract class AbstractSession<CONNECTION_HOLDER extends IConnectionHolder> extends Object implements ISession<CONNECTION_HOLDER>
| Constructor and Description |
|---|
AbstractSession() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
获取会话唯一标识
|
ISessionEventListener |
getSessionEventListener()
获取当前会话事件监听器
|
void |
setSessionEventListener(ISessionEventListener sessionEventListener)
设置会话事件监听器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionHolderclosepublic String getId()
ISessiongetId in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>public ISessionEventListener getSessionEventListener()
ISessiongetSessionEventListener in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>public void setSessionEventListener(ISessionEventListener sessionEventListener)
ISessionsetSessionEventListener in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>sessionEventListener - 事件监听器接口Copyright © 2022. All rights reserved.