@Component(value="blConsumeWorker") @Scope(value="prototype") @Lazy public class ConsumeWorkerImpl extends AbstractConsumerWorker implements DatabaseSystemEventNodeAware, Stoppable
SystemEvent
instances of type EventScopeType.VM
for this node. This worker specifically deals with VM event types.Modifier and Type | Field and Description |
---|---|
protected DatabaseSystemEventNode |
eventNode |
protected DatabaseSystemEventDao |
systemEventDao |
protected QueueStatusThreadPoolTaskExecutor |
taskExecutor |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
Constructor and Description |
---|
ConsumeWorkerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
constructTaskExecutor() |
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
protected Long |
getEventsPerPoll() |
protected List<Long> |
getQueuedEventIds() |
protected List<SystemEvent> |
getSystemEvents(int startPos,
Date lowDate,
EventWorkerType workerType) |
void |
init() |
void |
setDatabaseSystemEventNode(DatabaseSystemEventNode node) |
void |
stop() |
populateSystemEvents
protected DatabaseSystemEventNode eventNode
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected DatabaseSystemEventDao systemEventDao
protected QueueStatusThreadPoolTaskExecutor taskExecutor
@PostConstruct public void init()
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
execute
in interface ConsumeWorker
public void setDatabaseSystemEventNode(DatabaseSystemEventNode node)
setDatabaseSystemEventNode
in interface DatabaseSystemEventNodeAware
protected Long getEventsPerPoll()
protected List<SystemEvent> getSystemEvents(int startPos, Date lowDate, EventWorkerType workerType)
protected void constructTaskExecutor()
Copyright © 2017. All rights reserved.