Class StatisticsExecutorImpl

java.lang.Object
org.jboss.as.connector.services.workmanager.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 Details

    • StatisticsExecutorImpl

      public StatisticsExecutorImpl(Executor realExecutor)
      StatisticsExecutorImpl constructor
      Parameters:
      realExecutor - the real executor we are delegating
  • Method Details

    • execute

      public void execute(Runnable runnable)
      Specified by:
      execute in interface Executor
    • getNumberOfFreeThreads

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