org.jboss.seam.cron.asynchronous.threads
Class QuartzAsynchronousProvider
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
QuartzAsynchronousProvider
public QuartzAsynchronousProvider()
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.