Class AuditableRunner


  • public class AuditableRunner
    extends Object
    This class can be used to run batch jobs that requires to keep track of audit logs.
    • Constructor Detail

      • AuditableRunner

        @Inject
        public AuditableRunner​(UserRepository users)
    • Method Detail

      • run

        public void run​(Runnable job)
        Run a batch job.
        Parameters:
        job - the job to run
      • run

        public <T> T run​(Callable<T> job)
                  throws Exception
        Run a batch job.
        Type Parameters:
        T - type of the result
        Parameters:
        job - the job to run
        Returns:
        job result
        Throws:
        Exception - if unable to compute a result