org.qi4j.library.scheduler.task
Interface Task

All Superinterfaces:
Runnable

public interface Task
extends Runnable

Compose an Entity using this type to be able to Schedule it. A Task is wrapped in a ScheduleRunner before being run by SchedulerWorkQueue. ScheduleRunner wrap a UnitOfWork around the Runnable.run() invocation. Here is a simple example:

  interface MyTaskEntity
      extends Task, EntityComposite
  {
      Property customState();
      Association anotherEntity();
  }

  abstract class MyTaskMixin
      implements Runnable
  {


Method Summary
 Property<String> name()
           
 Property<List<String>> tags()
           
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

name

Property<String> name()

tags

@UseDefaults
Property<List<String>> tags()