Class AuthorizedTasks


  • public class AuthorizedTasks
    extends Object
    • Constructor Detail

      • AuthorizedTasks

        public AuthorizedTasks()
    • Method Detail

      • bind

        public static <V> Callable<V> bind​(Callable<V> task)
        Binds a Callable task to the current scope and user.
        Parameters:
        task - the task
        Returns:
        an equivalent Callable task bound to the current scope and user
      • bind

        public static <V> Runnable bind​(Runnable task)
        Binds a Runnable task to the current scope and user.
        Parameters:
        task - the task
        Returns:
        an equivalent Runnable task bound to the current scope and user