org.jboss.seam.async
@Name(value="org.jboss.seam.async.dispatcher") @Install(value=false, precedence=0) public class TimerServiceDispatcher extends AbstractDispatcher<javax.ejb.Timer,TimerSchedule> implements LocalTimerServiceDispatcher
AbstractDispatcher.DispatcherParameters
EXECUTING_ASYNCHRONOUS_CALL
Constructor and Description |
---|
TimerServiceDispatcher() |
Modifier and Type | Method and Description |
---|---|
Object |
call(Callable task) |
void |
dispatch(javax.ejb.Timer timer) |
static LocalTimerServiceDispatcher |
instance() |
void |
postConstruct() |
javax.ejb.Timer |
scheduleAsynchronousEvent(String type,
Object... parameters)
Schedule an immediate asynchronous event
|
javax.ejb.Timer |
scheduleInvocation(InvocationContext invocation,
Component component)
Schedule an asynchronous method call, examining annotations
upon the method to determine the schedule
|
javax.ejb.Timer |
scheduleTimedEvent(String type,
TimerSchedule schedule,
Object... parameters)
Schedule a timed (delayed and/or periodic) event
|
createSchedule, createTimerSchedule, extractAndValidateParameters, scheduleTransactionCompletionEvent, scheduleTransactionSuccessEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
scheduleTransactionCompletionEvent, scheduleTransactionSuccessEvent
@PostConstruct public void postConstruct()
public void dispatch(javax.ejb.Timer timer)
public javax.ejb.Timer scheduleTimedEvent(String type, TimerSchedule schedule, Object... parameters)
Dispatcher
scheduleTimedEvent
in interface Dispatcher<javax.ejb.Timer,TimerSchedule>
type
- the event typeschedule
- the scheduleparameters
- parameters to pass to the event listener methodpublic javax.ejb.Timer scheduleAsynchronousEvent(String type, Object... parameters)
Dispatcher
scheduleAsynchronousEvent
in interface Dispatcher<javax.ejb.Timer,TimerSchedule>
type
- the event typeparameters
- parameters to pass to the event listener methodpublic javax.ejb.Timer scheduleInvocation(InvocationContext invocation, Component component)
Dispatcher
scheduleInvocation
in interface Dispatcher<javax.ejb.Timer,TimerSchedule>
public Object call(Callable task)
call
in interface LocalTimerServiceDispatcher
public static LocalTimerServiceDispatcher instance()
Copyright © 2015 Seam Framework. All Rights Reserved.