Class EntityTemplateTasks.CachedTask<A,B>
java.lang.Object
ch.tocco.nice2.persist.entity.spi.template.EntityTemplateTasks.CachedTask<A,B>
- All Implemented Interfaces:
PersistTask<A,B>
- Enclosing class:
EntityTemplateTasks
A task that executes another task once and caches the result
as instance member. The next call of this task will return the
previous result.
-
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Method Details
-
run
- Specified by:
runin interfacePersistTask<A,B> - Throws:
Exception
-