Manages concurrent session limits, checking and reserving slots before sessions start.
Checks whether starting the given session would exceed any registered limits, and reserves its slot if it doesn't.
Sessions chosen for displacement stop counting towards limits, but are only ended on commit.
If the session exceeds a limit with an error action.
Ends the sessions displaced to make room for the given session. Called once it has started.
Returns a read-only view of all registered limit policies.
Registers session limit policies.
If called after the plugin has started.
Releases a session's reserved slot, and keeps running any session it was going to displace. Called when the session ends, expires or fails to start.
Removes all limit policies for the given session constructor.
Manages concurrent session limits, checking and reserving slots before sessions start.