类 SessionInfo
java.lang.Object
io.agentscope.core.session.SessionInfo
Information about a session.
Contains metadata about stored sessions including size, modification time, and the number of state components saved in the session.
-
构造器概要
构造器构造器说明SessionInfo(String sessionId, long size, long lastModified, int componentCount) Create a new SessionInfo instance. -
方法概要
-
构造器详细资料
-
SessionInfo
Create a new SessionInfo instance.- 参数:
sessionId- Unique identifier for the sessionsize- Size of the session storage in byteslastModified- Last modification timestamp in milliseconds since epochcomponentCount- Number of state components stored in the session
-
-
方法详细资料
-
getSessionId
Get the unique identifier for this session.- 返回:
- The session ID
-
getSize
public long getSize()Get the size of the session storage.- 返回:
- Size in bytes
-
getLastModified
public long getLastModified()Get the last modification timestamp.- 返回:
- Timestamp in milliseconds since epoch
-
getComponentCount
public int getComponentCount()Get the number of state components stored in this session.- 返回:
- Number of components
-
toString
Returns a string representation of the session information.
-