|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the timer objectpublic interface Dispatcher<T,S extends Schedule>
Interface to be implemented by any strategy for dispatching asynchronous method calls and asynchronous events.
Method Summary | |
---|---|
T |
scheduleAsynchronousEvent(String type,
Object... parameters)
Schedule an immediate asynchronous event |
T |
scheduleInvocation(InvocationContext invocation,
Component component)
Schedule an asynchronous method call, examining annotations upon the method to determine the schedule |
T |
scheduleTimedEvent(String type,
S schedule,
Object... parameters)
Schedule a timed (delayed and/or periodic) event |
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 |
Method Detail |
---|
T scheduleInvocation(InvocationContext invocation, Component component)
T scheduleTimedEvent(String type, S schedule, Object... parameters)
type
- the event typeschedule
- the scheduleparameters
- parameters to pass to the event listener method
T scheduleAsynchronousEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to pass to the event listener method
void scheduleTransactionSuccessEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to pass to the event listener methodvoid scheduleTransactionCompletionEvent(String type, Object... parameters)
type
- the event typeparameters
- parameters to pass to the event listener method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |