Class ProcessSimulationSession.SessionEntry
java.lang.Object
neqsim.process.processmodel.ProcessSimulationSession.SessionEntry
- Enclosing class:
ProcessSimulationSession
Internal session entry tracking creation time and last access.
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate longprivate final ProcessSystemprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionSessionEntry(ProcessSystem processSystem, String templateName) Creates a session entry. -
Method Summary
-
Field Details
-
processSystem
-
createdAt
private final long createdAt -
lastAccessedAt
private volatile long lastAccessedAt -
templateName
-
-
Constructor Details
-
SessionEntry
SessionEntry(ProcessSystem processSystem, String templateName) Creates a session entry.- Parameters:
processSystem- the process systemtemplateName- name of the template used (nullable)
-
-
Method Details
-
touch
void touch()Touches the session to update last access time. -
isExpired
boolean isExpired(long timeoutMs) Checks if the session has expired.- Parameters:
timeoutMs- timeout in milliseconds- Returns:
- true if expired
-