Class IdleDetector

java.lang.Object
org.jppf.node.idle.IdleDetector
All Implemented Interfaces:
Runnable

public class IdleDetector extends Object implements Runnable
This class detects that no mouse or keyboard has occurred for a specified time, and performs a specified action when this happens.
Author:
Laurent Cohen
  • Constructor Details

    • IdleDetector

      public IdleDetector(IdleStateListener listener)
      Default constructor.
      Parameters:
      listener - specifies the action to perform upon idle state changes.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • main

      public static void main(String[] args)
      Main entry point.
      Parameters:
      args - not used.