Interface TaskContext

    • 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