org.kie.api.executor

## Interface ExecutorService

-     public interface ExecutorService

  Top level facade that aggregates operations defined in:
  - `Executor`
  - `ExecutorQueryService`
  - `ExecutorAdminService`
  See Also:
    `Executor`, `ExecutorQueryService`, `ExecutorAdminService`

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `ExecutorService.IdProvider`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `EXECUTOR_ID` Allow to use custom identifiers for the executor instance where default is to rely on local id of clustering of kie if present, otherwise use simple 'default-executor'.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cancelRequest(Long requestId)`
    `int` | `clearAllErrors()`
    `int` | `clearAllRequests()`
    `void` | `destroy()`
    `List<ErrorInfo>` | `getAllErrors(QueryContext queryContext)`
    `List<RequestInfo>` | `getAllRequests(QueryContext queryContext)`
    `List<RequestInfo>` | `getCancelledRequests(QueryContext queryContext)`
    `List<RequestInfo>` | `getCompletedRequests(QueryContext queryContext)`
    `List<ErrorInfo>` | `getErrorsByRequestId(Long requestId)`
    `List<RequestInfo>` | `getFutureQueuedRequests(QueryContext queryContext)`
    `List<RequestInfo>` | `getInErrorRequests(QueryContext queryContext)`
    `int` | `getInterval()`
    `List<RequestInfo>` | `getPendingRequestById(Long id)`
    `List<RequestInfo>` | `getPendingRequests(QueryContext queryContext)`
    `List<RequestInfo>` | `getQueuedRequests(QueryContext queryContext)`
    `RequestInfo` | `getRequestById(Long requestId)`
    `List<RequestInfo>` | `getRequestsByBusinessKey(String businessKey, QueryContext queryContext)`
    `List<RequestInfo>` | `getRequestsByCommand(String command, QueryContext queryContext)`
    `List<RequestInfo>` | `getRequestsByStatus(List<STATUS> statuses, QueryContext queryContext)`
    `int` | `getRetries()`
    `List<RequestInfo>` | `getRunningRequests(QueryContext queryContext)`
    `int` | `getThreadPoolSize()`
    `TimeUnit` | `getTimeunit()`
    `void` | `init()`
    `boolean` | `isActive()`
    `Long` | `scheduleRequest(String commandName, CommandContext ctx)`
    `Long` | `scheduleRequest(String commandId, Date date, CommandContext ctx)`
    `void` | `setInterval(int waitTime)`
    `void` | `setRetries(int defaultNroOfRetries)`
    `void` | `setThreadPoolSize(int nroOfThreads)`
    `void` | `setTimeunit(TimeUnit timeunit)`

- - ### Field Detail

    - #### EXECUTOR_ID

          static final String EXECUTOR_ID

      Allow to use custom identifiers for the executor instance where default is to rely on local id of clustering of kie if present, otherwise use simple 'default-executor'. Alternatively an jbpm-executor.id file can be dropped on root of the classpath to provide application scoped id instead of JVM scoped (system property)

  - ### Method Detail

    - #### getQueuedRequests

          List<RequestInfo> getQueuedRequests(QueryContext queryContext)

    - #### getCompletedRequests

          List<RequestInfo> getCompletedRequests(QueryContext queryContext)

    - #### getInErrorRequests

          List<RequestInfo> getInErrorRequests(QueryContext queryContext)

    - #### getCancelledRequests

          List<RequestInfo> getCancelledRequests(QueryContext queryContext)

    - #### getAllErrors

          List<ErrorInfo> getAllErrors(QueryContext queryContext)

    - #### getAllRequests

          List<RequestInfo> getAllRequests(QueryContext queryContext)

    - #### getRequestsByStatus

          List<RequestInfo> getRequestsByStatus(List<STATUS> statuses,
                                                QueryContext queryContext)

    - #### getRequestsByBusinessKey

          List<RequestInfo> getRequestsByBusinessKey(String businessKey,
                                                     QueryContext queryContext)

    - #### getRequestsByCommand

          List<RequestInfo> getRequestsByCommand(String command,
                                                 QueryContext queryContext)

    - #### clearAllRequests

          int clearAllRequests()

    - #### clearAllErrors

          int clearAllErrors()

    - #### scheduleRequest

          Long scheduleRequest(String commandName,
                               CommandContext ctx)

    - #### cancelRequest

          void cancelRequest(Long requestId)

    - #### init

          void init()

    - #### destroy

          void destroy()

    - #### isActive

          boolean isActive()

    - #### getInterval

          int getInterval()

    - #### setInterval

          void setInterval(int waitTime)

    - #### getRetries

          int getRetries()

    - #### setRetries

          void setRetries(int defaultNroOfRetries)

    - #### getThreadPoolSize

          int getThreadPoolSize()

    - #### setThreadPoolSize

          void setThreadPoolSize(int nroOfThreads)

    - #### getTimeunit

          TimeUnit getTimeunit()

    - #### setTimeunit

          void setTimeunit(TimeUnit timeunit)

    - #### getPendingRequests

          List<RequestInfo> getPendingRequests(QueryContext queryContext)

    - #### getPendingRequestById

          List<RequestInfo> getPendingRequestById(Long id)

    - #### scheduleRequest

          Long scheduleRequest(String commandId,
                               Date date,
                               CommandContext ctx)

    - #### getRunningRequests

          List<RequestInfo> getRunningRequests(QueryContext queryContext)

    - #### getFutureQueuedRequests

          List<RequestInfo> getFutureQueuedRequests(QueryContext queryContext)

    - #### getRequestById

          RequestInfo getRequestById(Long requestId)

    - #### getErrorsByRequestId

          List<ErrorInfo> getErrorsByRequestId(Long requestId)

Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.