org.jboss.seam.async
@Startup @Scope(value=APPLICATION) @Name(value="org.jboss.seam.async.dispatcher") @Install(value=false, precedence=0) @BypassInterceptors public class QuartzDispatcher extends AbstractDispatcher<QuartzTriggerHandle,Schedule>
Modifier and Type | Class and Description |
---|---|
static class |
QuartzDispatcher.QuartzJob |
AbstractDispatcher.DispatcherParameters
EXECUTING_ASYNCHRONOUS_CALL
Constructor and Description |
---|
QuartzDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.quartz.Scheduler |
getScheduler() |
void |
initScheduler() |
static QuartzDispatcher |
instance() |
QuartzTriggerHandle |
scheduleAsynchronousEvent(String type,
Object... parameters)
Schedule an immediate asynchronous event
|
QuartzTriggerHandle |
scheduleInvocation(InvocationContext invocation,
Component component)
Schedule an asynchronous method call, examining annotations
upon the method to determine the schedule
|
QuartzTriggerHandle |
scheduleTimedEvent(String type,
Schedule schedule,
Object... parameters)
Schedule a timed (delayed and/or periodic) event
|
createSchedule, createTimerSchedule, extractAndValidateParameters, scheduleTransactionCompletionEvent, scheduleTransactionSuccessEvent
@Create public void initScheduler() throws org.quartz.SchedulerException
org.quartz.SchedulerException
public QuartzTriggerHandle scheduleAsynchronousEvent(String type, Object... parameters)
Dispatcher
type
- the event typeparameters
- parameters to pass to the event listener methodpublic QuartzTriggerHandle scheduleTimedEvent(String type, Schedule schedule, Object... parameters)
Dispatcher
type
- the event typeschedule
- the scheduleparameters
- parameters to pass to the event listener methodpublic QuartzTriggerHandle scheduleInvocation(InvocationContext invocation, Component component)
Dispatcher
@Destroy public void destroy() throws org.quartz.SchedulerException
org.quartz.SchedulerException
public org.quartz.Scheduler getScheduler()
public static QuartzDispatcher instance()
Copyright © 2015 Seam Framework. All Rights Reserved.