Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeoutSetter

        public TimeoutSetter​(SecuritySystem securitySystem,
                             int timeout,
                             int timeoutAdmin)
        Construct the timeout setter.
        Parameters:
        securitySystem - the security system
        timeout - the timeout to set for regular users, in seconds
        timeoutAdmin - the timeout to set for administrative users, in seconds
    • Method Detail

      • setTimeout

        public void setTimeout​(java.util.function.Consumer<java.lang.Integer> query)
        Set the timeout on the given query.
        Parameters:
        query - a query consuming a timeout setting