Class CleanupThread

All Implemented Interfaces:
Runnable

public class CleanupThread extends BatchThread
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • selectors

      private volatile SelectorThread[] selectors
    • keepAlive

      private volatile long keepAlive
  • Constructor Details

    • CleanupThread

      public CleanupThread(SelectorThread[] selectors, long keepAlive)
  • Method Details

    • shutdown

      public void shutdown()
    • getKeepAlive

      public long getKeepAlive()
    • setKeepAlive

      public void setKeepAlive(long keepAlive)
    • update

      public void update(SelectorThread[] selectors, long keepAlive)
    • waitKeepAlive

      private long waitKeepAlive() throws InterruptedException
      Throws:
      InterruptedException
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class BatchThread