com.notuvy.thread
Class IdleMonitor
java.lang.Object
com.notuvy.thread.IdleMonitor
- All Implemented Interfaces:
- ThreadControllable, Runnable
public class IdleMonitor
- extends Object
- implements Runnable, ThreadControllable
A utility to perform periodic task which are keyed off a
given amount of idle time. It creates its own (daemon)
thread to perform the action. It is created with the delay
period. It will only trigger if the UI activity idleness is
greater than this given period. It can also be triggered
manually, and the action will also take place in the same
thread.
User: murali
Date: Aug 29, 2008
Time: 5:20:10 PM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdleMonitor
public IdleMonitor(String pThreadName,
long pFullSleepPeriod,
Runnable pRunnable,
IdlenessMonitorable... pMonitorables)
getContext
public static IdleMonitor.Context getContext()
getFullSleepPeriod
public long getFullSleepPeriod()
getControl
public ThreadControl getControl()
- Specified by:
getControl
in interface ThreadControllable
manualTrigger
public void manualTrigger()
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2013. All Rights Reserved.