Class StatisticsExecutorImpl

  • All Implemented Interfaces:
    Executor, org.jboss.jca.core.api.workmanager.StatisticsExecutor

    public class StatisticsExecutorImpl
    extends Object
    implements org.jboss.jca.core.api.workmanager.StatisticsExecutor
    A StatisticsExecutor implementation keeping track of numberOfFreeThreads
    Author:
    Stefano Maestri
    • Constructor Detail

      • StatisticsExecutorImpl

        public StatisticsExecutorImpl​(org.jboss.threads.BlockingExecutor realExecutor)
        StatisticsExecutorImpl constructor
        Parameters:
        realExecutor - the real executor we are delegating
    • Method Detail

      • getNumberOfFreeThreads

        public long getNumberOfFreeThreads()
        Specified by:
        getNumberOfFreeThreads in interface org.jboss.jca.core.api.workmanager.StatisticsExecutor