Class ProcessSimulationSession.SessionEntry

java.lang.Object
neqsim.process.processmodel.ProcessSimulationSession.SessionEntry
Enclosing class:
ProcessSimulationSession

private static class ProcessSimulationSession.SessionEntry extends Object
Internal session entry tracking creation time and last access.
Version:
1.0
Author:
Even Solbraa
  • Field Details

    • processSystem

      private final ProcessSystem processSystem
    • createdAt

      private final long createdAt
    • lastAccessedAt

      private volatile long lastAccessedAt
    • templateName

      private final String templateName
  • Constructor Details

    • SessionEntry

      SessionEntry(ProcessSystem processSystem, String templateName)
      Creates a session entry.
      Parameters:
      processSystem - the process system
      templateName - 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