org.jboss.seam.cron.asynchronous.threads
Class QuartzAsynchronousProvider

java.lang.Object
  extended by org.jboss.seam.cron.asynchronous.threads.QuartzAsynchronousProvider
All Implemented Interfaces:
CronAsynchronousProvider, CronProviderLifecycle

public class QuartzAsynchronousProvider
extends Object
implements CronProviderLifecycle, CronAsynchronousProvider

Simple asynchronous method invocation which schedules @Asynchronous methods to be executed at some point in the very near future using the Quartz scheduler.

Author:
Peter Royle

Field Summary
static String ASYNC_JOB_GROUP
          The name of the job group for all arbitrarily scheduled events.
static String DELAYED_RESULT_SUPPORT
           
static String INV_CONTEXT_EXECUTOR
           
 
Constructor Summary
QuartzAsynchronousProvider()
           
 
Method Summary
 void destroyProvider()
          Shutdown the scheduler on application close.
 Future executeAndReturnFuture(Invoker invoker)
           
 void executeWithoutReturn(Invoker inkover)
           
 void initProvider()
          Initialises the scheduler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASYNC_JOB_GROUP

public static final String ASYNC_JOB_GROUP
The name of the job group for all arbitrarily scheduled events.

See Also:
Constant Field Values

INV_CONTEXT_EXECUTOR

public static final String INV_CONTEXT_EXECUTOR
See Also:
Constant Field Values

DELAYED_RESULT_SUPPORT

public static final String DELAYED_RESULT_SUPPORT
See Also:
Constant Field Values
Constructor Detail

QuartzAsynchronousProvider

public QuartzAsynchronousProvider()
Method Detail

initProvider

public void initProvider()
                  throws CronProviderInitialisationException
Initialises the scheduler.

Specified by:
initProvider in interface CronProviderLifecycle
Throws:
CronProviderInitialisationException

destroyProvider

public void destroyProvider()
                     throws CronProviderDestructionException
Shutdown the scheduler on application close.

Specified by:
destroyProvider in interface CronProviderLifecycle
Throws:
CronProviderDestructionException

executeWithoutReturn

public void executeWithoutReturn(Invoker inkover)
Specified by:
executeWithoutReturn in interface CronAsynchronousProvider

executeAndReturnFuture

public Future executeAndReturnFuture(Invoker invoker)
Specified by:
executeAndReturnFuture in interface CronAsynchronousProvider


Copyright © 2011 Seam Framework. All Rights Reserved.