org.jboss.seam.async
@Scope(value=APPLICATION) @Name(value="org.jboss.seam.async.dispatcher") @Install(precedence=0) public class ThreadPoolDispatcher extends AbstractDispatcher<Future,TimerSchedule>
AbstractDispatcher.DispatcherParameters
EXECUTING_ASYNCHRONOUS_CALL
Constructor and Description |
---|
ThreadPoolDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
int |
getThreadPoolSize() |
Future |
scheduleAsynchronousEvent(String type,
Object... parameters)
Schedule an immediate asynchronous event
|
Future |
scheduleInvocation(InvocationContext invocation,
Component component)
Schedule an asynchronous method call, examining annotations
upon the method to determine the schedule
|
Future |
scheduleTimedEvent(String type,
TimerSchedule schedule,
Object... parameters)
Schedule a timed (delayed and/or periodic) event
|
void |
setThreadPoolSize(int threadPoolSize) |
void |
startup() |
createSchedule, createTimerSchedule, extractAndValidateParameters, instance, scheduleTransactionCompletionEvent, scheduleTransactionSuccessEvent
@Create public void startup()
public Future scheduleAsynchronousEvent(String type, Object... parameters)
Dispatcher
type
- the event typeparameters
- parameters to pass to the event listener methodpublic Future scheduleTimedEvent(String type, TimerSchedule schedule, Object... parameters)
Dispatcher
type
- the event typeschedule
- the scheduleparameters
- parameters to pass to the event listener methodpublic Future scheduleInvocation(InvocationContext invocation, Component component)
Dispatcher
@Destroy public void destroy()
public int getThreadPoolSize()
public void setThreadPoolSize(int threadPoolSize)
Copyright © 2015 Seam Framework. All Rights Reserved.