Class SelectorThreadPool

java.lang.Object
com.sshtools.synergy.nio.SelectorThreadPool

public class SelectorThreadPool extends Object
Maintains a pool of SelectoThreads increasing the pool when required and always maintaining the minimum number of permanent threads required.
  • Constructor Details

    • SelectorThreadPool

      public SelectorThreadPool(SelectorThreadImpl impl, int permanentThreads, int maximumChannels, int idleServicePeriod, int inactivePeriodsPerIdleEvent, SelectorProvider selectorProvider) throws IOException
      Construct a thread pool. if(Log.isDebugEnabled()) Log.debug(
      Parameters:
      impl - SelectorThreadImpl
      permanentThreads - int
      maximumChannels - int
      idleServicePeriod - int
      inactivePeriodsPerIdleEvent - int
      selectorProvider - SelectorProvider
      Throws:
      IOException
  • Method Details