Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Nested Class Summary
`static class` | `QuartzDispatcher.QuartzJob`

Nested classes/interfaces inherited from class org.jboss.seam.async.AbstractDispatcher
`AbstractDispatcher.DispatcherParameters`

Field Summary

Fields inherited from class org.jboss.seam.async.AbstractDispatcher
`EXECUTING_ASYNCHRONOUS_CALL`

Constructor Summary
`QuartzDispatcher()`

Method Summary
`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

Methods inherited from class org.jboss.seam.async.AbstractDispatcher
`createSchedule, createTimerSchedule, extractAndValidateParameters, scheduleTransactionCompletionEvent, scheduleTransactionSuccessEvent`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### QuartzDispatcher

    public QuartzDispatcher()

Method Detail

### 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 type
    `parameters` - 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 type
    `schedule` - the schedule
    `parameters` - 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 Seam Framework. All Rights Reserved.