BackgroundService
Allows the execution of action invocations or property edits to be deferred so that they can be executed later in another thread of execution.
Typically this other thread of execution would be scheduled from quartz or similar. The org.apache.causeway.extensions.commandlog.applib.job.RunBackgroundCommandsJob provides a ready-made implementation to do this for quartz.
API
class BackgroundService {
T execute(T object) (1)
T executeSkipRules(T object) (2)
T executeMixin(Class<T> mixinClass, Object mixedIn) (3)
T executeMixinSkipRules(Class<T> mixinClass, Object mixedIn) (4)
}
1 | execute(T)
Wraps the domain object in a proxy whereby any actions invoked through the proxy will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry . |
2 | executeSkipRules(T)
Wraps the domain object in a proxy whereby any actions invoked through the proxy will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry . |
3 | executeMixin(Class, Object)
Wraps a mixin object in a proxy whereby invoking that mixin will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry . |
4 | executeMixinSkipRules(Class, Object)
Wraps a mixin object in a proxy whereby invoking that mixin will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry . |
Members
execute(T)
Wraps the domain object in a proxy whereby any actions invoked through the proxy will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry .
executeSkipRules(T)
Wraps the domain object in a proxy whereby any actions invoked through the proxy will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry .
executeMixin(Class, Object)
Wraps a mixin object in a proxy whereby invoking that mixin will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry .
executeMixinSkipRules(Class, Object)
Wraps a mixin object in a proxy whereby invoking that mixin will instead be persisted as a ExecuteIn#BACKGROUND background CommandLogEntry .