Interface TaskContext

All Known Subinterfaces:
RuleCompilationContext
All Known Implementing Classes:
DefaultRuleCompilationContext, DefaultTaskContext

public interface TaskContext
The interface for the rule compilation context
  • Method Details

    • getCurrentTenant

      Tenant getCurrentTenant()
      Get the currently active tenant
      Returns:
      The active tenant
    • getThreadFactory

      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

      Long getThreadTimeout()
      get the thread pre-destroy timeout
      Returns:
      number of milliseconds to wait before forcing the thread to join