org.jboss.seam.async
public abstract class AbstractDispatcher<T,S extends Schedule> extends Object implements Dispatcher<T,S>
Modifier and Type | Class and Description |
---|---|
class |
AbstractDispatcher.DispatcherParameters |
Modifier and Type | Field and Description |
---|---|
static String |
EXECUTING_ASYNCHRONOUS_CALL |
Constructor and Description |
---|
AbstractDispatcher() |
Modifier and Type | Method and Description |
---|---|
protected Schedule |
createSchedule(InvocationContext invocation) |
protected TimerSchedule |
createTimerSchedule(InvocationContext invocation) |
protected AbstractDispatcher.DispatcherParameters |
extractAndValidateParameters(InvocationContext invocation) |
static Dispatcher |
instance() |
void |
scheduleTransactionCompletionEvent(String type,
Object... parameters)
Schedule an event to be processed when the current transaction ends
|
void |
scheduleTransactionSuccessEvent(String type,
Object... parameters)
Schedule an event to be processed if and when the current transaction
completes successfully
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
scheduleAsynchronousEvent, scheduleInvocation, scheduleTimedEvent
public static final String EXECUTING_ASYNCHRONOUS_CALL
public static Dispatcher instance()
public void scheduleTransactionSuccessEvent(String type, Object... parameters)
Dispatcher
scheduleTransactionSuccessEvent
in interface Dispatcher<T,S extends Schedule>
type
- the event typeparameters
- parameters to pass to the event listener methodpublic void scheduleTransactionCompletionEvent(String type, Object... parameters)
Dispatcher
scheduleTransactionCompletionEvent
in interface Dispatcher<T,S extends Schedule>
type
- the event typeparameters
- parameters to pass to the event listener methodprotected Schedule createSchedule(InvocationContext invocation)
protected TimerSchedule createTimerSchedule(InvocationContext invocation)
protected AbstractDispatcher.DispatcherParameters extractAndValidateParameters(InvocationContext invocation)
Copyright © 2015 Seam Framework. All Rights Reserved.