Interface SessionLimit
- All Superinterfaces:
Function<Authentication,
reactor.core.publisher.Mono<Integer>>
Represents the maximum number of sessions allowed. Use
UNLIMITED
to indicate
that there is no limit.- Since:
- 6.3
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionLimit
of
(int maxSessions) Creates aSessionLimit
that always returns the given value for any user
-
Field Details
-
UNLIMITED
Represents unlimited sessions. This is just a shortcut to returnMono.empty()
for any user.
-
-
Method Details
-
of
Creates aSessionLimit
that always returns the given value for any user- Parameters:
maxSessions
- the maximum number of sessions allowed- Returns:
- a
SessionLimit
instance that returns the given value.
-