Class RqueueTaskAggregatorService
- java.lang.Object
-
- com.github.sonus21.rqueue.web.service.RqueueTaskAggregatorService
-
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationListener<RqueueExecutionEvent>
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
@Service public class RqueueTaskAggregatorService extends java.lang.Object implements org.springframework.context.ApplicationListener<RqueueExecutionEvent>, org.springframework.beans.factory.DisposableBean, org.springframework.context.SmartLifecycle
-
-
Constructor Summary
Constructors Constructor Description RqueueTaskAggregatorService(RqueueConfig rqueueConfig, RqueueWebConfig rqueueWebConfig, RqueueLockManager rqueueLockManager, RqueueQStatsDao rqueueQStatsDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
boolean
isRunning()
void
onApplicationEvent(RqueueExecutionEvent event)
void
start()
void
stop()
-
-
-
Constructor Detail
-
RqueueTaskAggregatorService
@Autowired public RqueueTaskAggregatorService(RqueueConfig rqueueConfig, RqueueWebConfig rqueueWebConfig, RqueueLockManager rqueueLockManager, RqueueQStatsDao rqueueQStatsDao)
-
-
Method Detail
-
destroy
public void destroy() throws java.lang.Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
-
start
public void start()
- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
onApplicationEvent
public void onApplicationEvent(RqueueExecutionEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<RqueueExecutionEvent>
-
-