Interface TaskContext
-
- All Known Subinterfaces:
RuleCompilationContext
- All Known Implementing Classes:
DefaultRuleCompilationContext,DefaultTaskContext
public interface TaskContextThe interface for the rule compilation context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TenantgetCurrentTenant()Get the currently active tenantintgetNumberOfThreads()get the maximum number of threads to allocate for multi-thread executionjava.util.concurrent.ThreadFactorygetThreadFactory()get the thread factory to be used for creating the tenant-aware threadsjava.lang.LonggetThreadTimeout()get the thread pre-destroy timeout
-
-
-
Method Detail
-
getCurrentTenant
Tenant getCurrentTenant()
Get the currently active tenant- Returns:
- The active tenant
-
getThreadFactory
java.util.concurrent.ThreadFactory getThreadFactory()
get the thread factory to be used for creating the tenant-aware threads- Returns:
- the thread factory implementation
-
getNumberOfThreads
int getNumberOfThreads()
get the maximum number of threads to allocate for multi-thread execution- Returns:
- number of threads
-
getThreadTimeout
java.lang.Long getThreadTimeout()
get the thread pre-destroy timeout- Returns:
- number of milliseconds to wait before forcing the thread to join
-
-