Class TvAccountStateAndOptionsDatabaseWorker
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.worker.WorkerTask<EventListenerContext>
ru.bitel.bgbilling.kernel.event.EventWorker
ru.bitel.bgbilling.modules.tv.server.runtime.TvAccountStateAndOptionsDatabaseWorker
- All Implemented Interfaces:
Runnable
,EventListener<ru.bitel.bgbilling.kernel.event.common.Event>
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.worker.WorkerTask
ru.bitel.common.worker.WorkerTask.BlockingExecutionHandler
-
Field Summary
Fields inherited from class ru.bitel.bgbilling.kernel.event.EventWorker
batchWait, consumer, errorPause, moduleId, working
Fields inherited from class ru.bitel.common.worker.WorkerTask
context
-
Constructor Summary
-
Method Summary
Methods inherited from class ru.bitel.bgbilling.kernel.event.EventWorker
doTasks, internalDoTask, internalRunWorker, notify, poll, pollFirstTask, runImpl, setConsumer, shutdown
Methods inherited from class ru.bitel.common.worker.WorkerTask
newBlockingFixedThreadPool, newFixedThreadPool, newFixedThreadPool, newScheduledThreadPool, run, runSync, runSync, setContext
Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
getLogger, logError
-
Constructor Details
-
TvAccountStateAndOptionsDatabaseWorker
public TvAccountStateAndOptionsDatabaseWorker(TvApplication application) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
-
Method Details
-
runWorker
protected boolean runWorker() throws ru.bitel.bgbilling.common.BGExceptionDescription copied from class:EventWorker
Вызывается, когда появляются задачи. Внутри данного метода нужно вызватьEventWorker.doTasks()
, который выполняет последовательно появившиеся задачи. А перед и после вызоваEventWorker.doTasks()
можно инициализировать и освободить DAO.- Specified by:
runWorker
in classEventWorker
- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
doTask
Description copied from class:EventWorker
Выполнение одной задачи (события).- Specified by:
doTask
in classEventWorker
- Returns:
- обычно null.
- Throws:
ru.bitel.bgbilling.common.BGException
-
toString
-