QJCC homepage

biz.chitec.quarterback.gjsa
Class CBServerConnector.LineWakeupToggler

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.chitec.quarterback.util.StoppableThread
          extended bybiz.chitec.quarterback.gjsa.CBServerConnector.LineWakeupToggler
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CBServerConnector

private final class CBServerConnector.LineWakeupToggler
extends StoppableThread

Background thread to send keep alive packets through the connection


Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.util.StoppableThread
StoppableThread.StopException
 
Field Summary
private  long sleeptime
           
 
Fields inherited from class biz.chitec.quarterback.util.StoppableThread
shouldbestopped
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CBServerConnector.LineWakeupToggler()
          Start toggler with standard interval
CBServerConnector.LineWakeupToggler(long xst)
          Start toggler with arbitrary interval
 
Method Summary
 void run()
          Main loop
 void stopGracefully()
          Stops toggler.
 
Methods inherited from class biz.chitec.quarterback.util.StoppableThread
shouldBeStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

sleeptime

private long sleeptime
Constructor Detail

CBServerConnector.LineWakeupToggler

public CBServerConnector.LineWakeupToggler(long xst)
Start toggler with arbitrary interval


CBServerConnector.LineWakeupToggler

public CBServerConnector.LineWakeupToggler()
Start toggler with standard interval

Method Detail

run

public void run()
Main loop


stopGracefully

public void stopGracefully()
Stops toggler. Extended as after setting the variable it will wake up the main thread (if that one is currently sleeping)

Overrides:
stopGracefully in class StoppableThread

QJCC homepage