Mina学习笔记 Session

来源:互联网 发布:网络监控摄像机维修 编辑:程序博客网 时间:2024/05/17 06:34

The Session is at the heart of MINA : every time a client connects to the server, a new session is created on the server, and will be kept in memory until the client is disconnected. If you are using MINA on the client side, everytime you conect to a server, a session will be created on the client too.

session State
Connected : the session has been created and is available
Idle : the session hasn’t processed any request for at least a period of time (this period is configurable)
Idle for read : no read has actually been made for a period of time
Idle for write : no write has actually been made for a period of time
Idle for both : no read nor write for a period of time
Closing : the session is being closed (the remaining messages are being flushed, cleaning up is not terminated)
Closed : The session is now closed, nothing else can be done to revive it. This is actually not a real state : when teh session is closed, it’s removed.

原创粉丝点击