public class TimeoutSetter
extends java.lang.Object
Constructor and Description |
---|
TimeoutSetter(SecuritySystem securitySystem,
int timeout,
int timeoutAdmin)
Construct the timeout setter.
|
Modifier and Type | Method and Description |
---|---|
void |
setTimeout(java.util.function.Consumer<java.lang.Integer> query)
Set the timeout on the given query.
|
public TimeoutSetter(SecuritySystem securitySystem, int timeout, int timeoutAdmin)
securitySystem
- the security systemtimeout
- the timeout to set for regular users, in secondstimeoutAdmin
- the timeout to set for administrative users, in seconds