Package ome.services.util
Class TimeoutSetter
- java.lang.Object
-
- ome.services.util.TimeoutSetter
-
public class TimeoutSetter extends java.lang.Object
Sets timeouts for queries according to event context.- Since:
- 5.5.0
-
-
Constructor Summary
Constructors Constructor Description TimeoutSetter(SecuritySystem securitySystem, int timeout, int timeoutAdmin)
Construct the timeout setter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setTimeout(java.util.function.Consumer<java.lang.Integer> query)
Set the timeout on the given query.
-
-
-
Constructor Detail
-
TimeoutSetter
public TimeoutSetter(SecuritySystem securitySystem, int timeout, int timeoutAdmin)
Construct the timeout setter.- Parameters:
securitySystem
- the security systemtimeout
- the timeout to set for regular users, in secondstimeoutAdmin
- the timeout to set for administrative users, in seconds
-
-