org.jboss.seam.async
Class QuartzDispatcher
java.lang.Object
org.jboss.seam.async.AbstractDispatcher<QuartzTriggerHandle,Schedule>
org.jboss.seam.async.QuartzDispatcher
- All Implemented Interfaces:
- Dispatcher<QuartzTriggerHandle,Schedule>
@Startup
@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.async.dispatcher")
@Install(value=false,
precedence=0)
@BypassInterceptors
public class QuartzDispatcher
- extends AbstractDispatcher<QuartzTriggerHandle,Schedule>
Dispatcher implementation that uses the Quartz library.
- Author:
- Michael Yuan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuartzDispatcher
public QuartzDispatcher()
initScheduler
@Create
public void initScheduler()
throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
scheduleAsynchronousEvent
public QuartzTriggerHandle scheduleAsynchronousEvent(String type,
Object... parameters)
- Description copied from interface:
Dispatcher
- Schedule an immediate asynchronous event
- Parameters:
type
- the event typeparameters
- parameters to pass to the event listener method
- Returns:
- some kind of timer object, or null
scheduleTimedEvent
public QuartzTriggerHandle scheduleTimedEvent(String type,
Schedule schedule,
Object... parameters)
- Description copied from interface:
Dispatcher
- Schedule a timed (delayed and/or periodic) event
- Parameters:
type
- the event typeschedule
- the scheduleparameters
- parameters to pass to the event listener method
- Returns:
- some kind of timer object, or null
scheduleInvocation
public QuartzTriggerHandle scheduleInvocation(InvocationContext invocation,
Component component)
- Description copied from interface:
Dispatcher
- Schedule an asynchronous method call, examining annotations
upon the method to determine the schedule
- Returns:
- some kind of timer object, or null
destroy
@Destroy
public void destroy()
throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
getScheduler
public org.quartz.Scheduler getScheduler()
instance
public static QuartzDispatcher instance()
Copyright © 2011 Seam Framework. All Rights Reserved.