Class AbstractBackgroundTaskRunner
- java.lang.Object
-
- cn.boboweike.carrot.server.runner.AbstractBackgroundTaskRunner
-
- All Implemented Interfaces:
BackgroundTaskRunner
- Direct Known Subclasses:
BackgroundStaticFieldTaskWithoutIocRunner,BackgroundStaticTaskWithoutIocRunner,BackgroundTaskWithIocRunner,BackgroundTaskWithoutIocRunner
public abstract class AbstractBackgroundTaskRunner extends Object implements BackgroundTaskRunner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractBackgroundTaskRunner.BackgroundTaskWorker
-
Constructor Summary
Constructors Constructor Description AbstractBackgroundTaskRunner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractBackgroundTaskRunner.BackgroundTaskWorkergetBackgroundTaskWorker(Task task)voidrun(Task task)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.boboweike.carrot.server.runner.BackgroundTaskRunner
supports
-
-
-
-
Method Detail
-
getBackgroundTaskWorker
protected abstract AbstractBackgroundTaskRunner.BackgroundTaskWorker getBackgroundTaskWorker(Task task)
-
run
public void run(Task task) throws Exception
- Specified by:
runin interfaceBackgroundTaskRunner- Throws:
Exception
-
-