|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventhandling.EventProcessingScheduler
public class EventProcessingScheduler
The EventProcessingScheduler is responsible for scheduling all events within the same SequencingIdentifier in an Executor. It will only handle events that were present in the queue at the moment processing started. Any events added later will be rescheduled automatically.
| Constructor Summary | |
|---|---|
EventProcessingScheduler(EventListener eventListener,
TransactionManager transactionManager,
Executor executor,
org.axonframework.eventhandling.EventProcessingScheduler.ShutdownCallback shutDownCallback)
Initialize a scheduler for the given eventListener using the given executor. |
|
EventProcessingScheduler(EventListener eventListener,
TransactionManager transactionManager,
Executor executor,
Queue<Event> eventQueue,
org.axonframework.eventhandling.EventProcessingScheduler.ShutdownCallback shutDownCallback)
Initialize a scheduler for the given eventListener using the given executor. |
|
| Method Summary | |
|---|---|
void |
run()
|
boolean |
scheduleEvent(Event event)
Schedules an event for processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventProcessingScheduler(EventListener eventListener,
TransactionManager transactionManager,
Executor executor,
org.axonframework.eventhandling.EventProcessingScheduler.ShutdownCallback shutDownCallback)
eventListener using the given executor.
eventListener - The event listener for which this scheduler schedules eventstransactionManager - The transaction manager that manages underlying transactionsexecutor - The executor service that will process the eventsshutDownCallback - The callback to notify when the scheduler finishes processing events
public EventProcessingScheduler(EventListener eventListener,
TransactionManager transactionManager,
Executor executor,
Queue<Event> eventQueue,
org.axonframework.eventhandling.EventProcessingScheduler.ShutdownCallback shutDownCallback)
eventListener using the given executor. The
eventQueue is the queue from which the scheduler should obtain it's events. This queue must be
thread safe, as it can be used simultaneously by multiple threads.
eventListener - The event listener for which this scheduler schedules eventstransactionManager - The transaction manager that manages underlying transactionsexecutor - The executor service that will process the eventseventQueue - The queue from which this scheduler gets eventsshutDownCallback - The callback to notify when the scheduler finishes processing events| Method Detail |
|---|
public boolean scheduleEvent(Event event)
event - the event to schedule
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||