Class SimplePollingTask

    • Constructor Detail

      • SimplePollingTask

        public SimplePollingTask()
    • Method Detail

      • execute

        protected abstract long execute()
                                 throws Throwable
        Executes the task batch. This method must be idempotent, which means that subsequent invocations should not cause side effects. For example, a task could expire data up to the current hour. If executed several times within any given hour, only the first execution should change data, while others should not affect anything. Should return the number of affected records
        Throws:
        Throwable
      • isRunInTransaction

        protected boolean isRunInTransaction()
        Return whether the execute method must be ran in a transaction or not. By default a transaction is opened before execute the method.