Interface TaskMetricsCollector


  • public interface TaskMetricsCollector
    Collect metrics relating to the task execution. The task execution (of which each fabric transaction is one) is backed by a thread pool that implements this interface. As that is an implementation class this interface abstracts the information available from it (as far as metrics go).
    • Method Detail

      • getCurrentTaskCount

        int getCurrentTaskCount()
        Currently executing tasks.
        Returns:
        int > 0
      • getCurrentQueueCount

        int getCurrentQueueCount()
        Currently waiting tasks; should not be a higher number.
        Returns:
        int > 0
      • getActiveCount

        int getActiveCount()
        Currently executing threads.
        Returns:
        int > 0
      • getPoolSize

        int getPoolSize()
        Gets the current size of the pool.
        Returns:
        int > 0
      • getCorePoolSize

        int getCorePoolSize()
        Gets the core (minimum) pool size.
        Returns:
        int > 0
      • getLargestPoolSize

        int getLargestPoolSize()
        Gets the largest pool size so far.
        Returns:
        int > 0
      • getMaximumPoolSize

        int getMaximumPoolSize()
        Gets the upper limit pool size.
        Returns:
        int > 0