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, wait
getConnectionHolder
close
public String getId()
ISession
getId
in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>
public ISessionEventListener getSessionEventListener()
ISession
getSessionEventListener
in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>
public void setSessionEventListener(ISessionEventListener sessionEventListener)
ISession
setSessionEventListener
in interface ISession<CONNECTION_HOLDER extends IConnectionHolder>
sessionEventListener
- 事件监听器接口Copyright © 2022. All rights reserved.