org.axonframework.eventhandling.scheduling.quartz
Class FireEventJob

java.lang.Object
  extended by org.axonframework.eventhandling.scheduling.quartz.FireEventJob
All Implemented Interfaces:
org.quartz.Job

public class FireEventJob
extends Object
implements org.quartz.Job

Quartz Job that publishes an event on an Event Bus. The event is retrieved from the JobExecutionContext. The Event Bus is fetched from the scheduler context.

Since:
0.7
Author:
Allard Buijze

Field Summary
static String EVENT_BUS_KEY
          The key used to locate the Event Bus in the scheduler context.
static String EVENT_KEY
          The key used to locate the event in the JobExecutionContext.
 
Constructor Summary
FireEventJob()
           
 
Method Summary
 void execute(org.quartz.JobExecutionContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_KEY

public static final String EVENT_KEY
The key used to locate the event in the JobExecutionContext.


EVENT_BUS_KEY

public static final String EVENT_BUS_KEY
The key used to locate the Event Bus in the scheduler context.

Constructor Detail

FireEventJob

public FireEventJob()
Method Detail

execute

public void execute(org.quartz.JobExecutionContext context)
             throws org.quartz.JobExecutionException
Specified by:
execute in interface org.quartz.Job
Throws:
org.quartz.JobExecutionException


Copyright © 2011. All Rights Reserved.