|
KIE Internal 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Executor
Core logic of executor is encapsulated by this interface. It allows to operate on request instances of the execution.
| Method Summary | |
|---|---|
void |
cancelRequest(Long requestId)
Cancels active (queued, running or retrying) request |
void |
destroy()
Destroys executor |
int |
getInterval()
Returns configured interval at which executor threads are running |
int |
getRetries()
Returns configured default number of retries that shall be attempted in case of an error |
int |
getThreadPoolSize()
Returns configured executor thread pool size |
void |
init()
Initialized executor |
Long |
scheduleRequest(String commandName,
CommandContext ctx)
Schedules execution of given command as soon as possible. |
Long |
scheduleRequest(String commandName,
Date date,
CommandContext ctx)
Schedules execution of given command on defined time. |
void |
setInterval(int waitTime)
Sets interval at which executor threads are running. |
void |
setRetries(int defaultNroOfRetries)
Sets default number of retries that shall be attempted in case of an error. |
void |
setThreadPoolSize(int nroOfThreads)
Sets default executor thread pool size. |
| Method Detail |
|---|
Long scheduleRequest(String commandName,
CommandContext ctx)
commandName - - FQCN of the commandctx - - contextual data given by executor service
Long scheduleRequest(String commandName,
Date date,
CommandContext ctx)
commandName - - FQCN of the commanddate - - date at which given command shall be executedctx - - contextual data given by executor service
void cancelRequest(Long requestId)
requestId - - id of the request to cancelint getInterval()
void setInterval(int waitTime)
init method has been called.
waitTime - int getRetries()
void setRetries(int defaultNroOfRetries)
init method has been called.
defaultNroOfRetries - int getThreadPoolSize()
void setThreadPoolSize(int nroOfThreads)
init method has been called.
nroOfThreads - void init()
void destroy()
|
KIE Internal 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||