public class ExecutorImpl extends Object implements org.kie.internal.executor.api.Executor
Executor that is baced by
ScheduledExecutorService for background task execution.
It can be configured for following:
| Constructor and Description |
|---|
ExecutorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRequest(Long requestId) |
void |
destroy() |
int |
getInterval() |
int |
getRetries() |
int |
getThreadPoolSize() |
TimeUnit |
getTimeunit() |
void |
init() |
void |
init(ThreadFactory threadFactory) |
Long |
scheduleRequest(String commandId,
org.kie.api.executor.CommandContext ctx) |
Long |
scheduleRequest(String commandId,
Date date,
org.kie.api.executor.CommandContext ctx) |
void |
setExecutorStoreService(org.kie.api.executor.ExecutorStoreService executorStoreService) |
void |
setInterval(int interval) |
void |
setRetries(int retries) |
void |
setThreadPoolSize(int threadPoolSize) |
void |
setTimeunit(TimeUnit timeunit) |
public void setExecutorStoreService(org.kie.api.executor.ExecutorStoreService executorStoreService)
public int getInterval()
getInterval in interface org.kie.api.executor.Executorpublic void setInterval(int interval)
setInterval in interface org.kie.api.executor.Executorpublic int getRetries()
getRetries in interface org.kie.api.executor.Executorpublic void setRetries(int retries)
setRetries in interface org.kie.api.executor.Executorpublic int getThreadPoolSize()
getThreadPoolSize in interface org.kie.api.executor.Executorpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface org.kie.api.executor.Executorpublic TimeUnit getTimeunit()
getTimeunit in interface org.kie.api.executor.Executorpublic void setTimeunit(TimeUnit timeunit)
setTimeunit in interface org.kie.api.executor.Executorpublic void init()
init in interface org.kie.api.executor.Executorpublic void init(ThreadFactory threadFactory)
public void destroy()
destroy in interface org.kie.api.executor.Executorpublic Long scheduleRequest(String commandId, org.kie.api.executor.CommandContext ctx)
scheduleRequest in interface org.kie.api.executor.Executorpublic Long scheduleRequest(String commandId, Date date, org.kie.api.executor.CommandContext ctx)
scheduleRequest in interface org.kie.api.executor.Executorpublic void cancelRequest(Long requestId)
cancelRequest in interface org.kie.api.executor.ExecutorCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.