Add SessionDisconnectJob to publish DisconnectEvent when Session timeouts #207

Merged
lars.winzer merged 5 commits from feat/15-session-disconnect-job into main 2026-03-28 13:17:43 +01:00
Showing only changes of commit 1f4ccb1033 - Show all commits
@@ -49,10 +49,16 @@ public class Session {
return this.id;
}
/**
* Gets the timestamp of the last inbound activity for this session.
*
* @return an {@link Instant} representing the time of the last inbound activity
*/
public Instant getLastInboundActivity() {
return lastActivity;
}
/** Updates the timestamp of the last inbound activity for this session. */
public void updateLastInboundActivity() {
this.lastActivity = Instant.now();
}