de.nava.informa.utils
Class PersistChanGrpMgrTask

java.lang.Object
  extended by java.lang.Thread
      extended by de.nava.informa.utils.PersistChanGrpMgrTask
All Implemented Interfaces:
Runnable

public class PersistChanGrpMgrTask
extends Thread

PersistChanGrpMgrTask - description...


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PersistChanGrpMgrTask(PersistChanGrpMgr mgr, long minChannelUpdateDelay)
          Construct and setup context of the PersistChanGrpMgr
 
Method Summary
 void interrupt()
          Interrupt the thread and return.
 void interrupt(boolean wait)
          Interrupts execution of task.
 boolean isRunning()
          Returns TRUE if current thread is running.
 void performUpdates()
          Perform single update cycle for current group.
 void run()
          run - Called each iteration to process all the Channels in this Group.
 void setMinChannelUpdateDelay(long minChannelUpdateDelay)
          Minimum number of milliseconds between updates of channel.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistChanGrpMgrTask

public PersistChanGrpMgrTask(PersistChanGrpMgr mgr,
                             long minChannelUpdateDelay)
Construct and setup context of the PersistChanGrpMgr

Parameters:
mgr -
minChannelUpdateDelay - minimum number of millis between channel updates.
Method Detail

setMinChannelUpdateDelay

public void setMinChannelUpdateDelay(long minChannelUpdateDelay)
Minimum number of milliseconds between updates of channel.

Parameters:
minChannelUpdateDelay - minimum pause between updates in milliseconds.

run

public void run()
run - Called each iteration to process all the Channels in this Group. This will skip inactive channels. -

Specified by:
run in interface Runnable
Overrides:
run in class Thread

isRunning

public boolean isRunning()
Returns TRUE if current thread is running.

Returns:
TRUE if running.

interrupt

public void interrupt()
Interrupt the thread and return.

Overrides:
interrupt in class Thread
See Also:
Thread.interrupt()

interrupt

public void interrupt(boolean wait)
Interrupts execution of task.

Parameters:
wait - TRUE to wait for finish of task.

performUpdates

public void performUpdates()
Perform single update cycle for current group.



Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.