ix.itest
Class Itest.SendingThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ix.util.CatchingThread
              |
              +--ix.itest.Itest.SendingThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Itest

public static class Itest.SendingThread
extends CatchingThread

Stoppable thread for sending a series of messages. Stop by doing thread.exit = true.


Field Summary
(package private)  javax.swing.AbstractButton button
           
 int defaultDelay
           
(package private)  java.lang.Object destination
           
(package private)  boolean exit
           
 int initialDelay
           
(package private)  java.util.List messages
           
 
Fields inherited from class ix.util.CatchingThread
innerRunnable
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
Itest.SendingThread(javax.swing.AbstractButton button, java.lang.Object destination, java.util.List messages)
           
 
Method Summary
 void innerRun()
          Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null, otherwise does nothing.
 
Methods inherited from class ix.util.CatchingThread
handleException, reportException, run
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

button

javax.swing.AbstractButton button

destination

java.lang.Object destination

messages

java.util.List messages

defaultDelay

public int defaultDelay

initialDelay

public int initialDelay

exit

volatile boolean exit
Constructor Detail

Itest.SendingThread

public Itest.SendingThread(javax.swing.AbstractButton button,
                           java.lang.Object destination,
                           java.util.List messages)
Method Detail

innerRun

public void innerRun()
Description copied from class: CatchingThread
Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null, otherwise does nothing.
Overrides:
innerRun in class CatchingThread