public class ExecutorRequestAdminServiceImpl extends Object implements org.kie.api.executor.ExecutorAdminService, RequeueAware
ExecutorAdminService
backed with JPA
IMPORTANT: please keep all classes from package org.jbpm.shared.services.impl as FQCN
inside method body to avoid exception logged by CDI when used with in memory modeConstructor and Description |
---|
ExecutorRequestAdminServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
clearAllErrors() |
int |
clearAllRequests() |
void |
requeue(Long olderThan)
Moves
RequestInfo instances that are in running state longer than
given amount of time (time unit depends on the org.kie.executor.timeunit system property) |
void |
requeueById(Long requestId)
Moves
RequestInfo instance with given request id that are in running state |
void |
setCommandService(org.kie.api.runtime.CommandExecutor commandService) |
void |
setExecutor(org.kie.api.executor.Executor executor) |
public void setCommandService(org.kie.api.runtime.CommandExecutor commandService)
public void setExecutor(org.kie.api.executor.Executor executor)
public int clearAllRequests()
clearAllRequests
in interface org.kie.api.executor.ExecutorAdminService
public int clearAllErrors()
clearAllErrors
in interface org.kie.api.executor.ExecutorAdminService
public void requeue(Long olderThan)
RequeueAware
RequestInfo
instances that are in running state longer than
given amount of time (time unit depends on the org.kie.executor.timeunit
system property)requeue
in interface RequeueAware
olderThan
- amount of time from current time stamppublic void requeueById(Long requestId)
RequeueAware
RequestInfo
instance with given request id that are in running staterequeueById
in interface RequeueAware
requestId
- request unique identifierCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.