Class AbstractPersistenceManager.BatchTasks

    • Field Detail

      • f_listTasks

        protected final List<Runnable> f_listTasks
        List of tasks to execute.
      • f_oAssociation

        protected final Object f_oAssociation
        Association for this BatchTasks.
    • Constructor Detail

      • BatchTasks

        protected BatchTasks​(List<Runnable> listTasks)
        Construct a BatchTasks instance with the given list of tasks to execute.
        Parameters:
        listTasks - the tasks to execute
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getAssociatedKey

        public Object getAssociatedKey()
        Description copied from interface: Associated
        Determine the host key (or base) object to which this object is associated.

        Note: It's expected that the returned object is suitable to be used as an immutable identity (e.g. a key in a Map).
        Note 2: Circular associations are not permitted.

        Specified by:
        getAssociatedKey in interface Associated
        Returns:
        the host key that for this object, or null if this object has no association