org.elite.jdcbot.framework
Class TimeoutInputThread

java.lang.Object
  extended by org.elite.jdcbot.framework.DCIO
      extended by org.elite.jdcbot.framework.InputThread
          extended by org.elite.jdcbot.framework.TimeoutInputThread
All Implemented Interfaces:
java.lang.Runnable

public class TimeoutInputThread
extends InputThread

Created on 27-May-08

Author:
AppleGrew

Nested Class Summary
private  class TimeoutInputThread.Timer
           
 
Field Summary
private  long timeout
           
private  TimeoutInputThread.Timer timer
           
 
Constructor Summary
TimeoutInputThread(InputThreadTarget inputThreadTrgt, java.io.InputStream in)
          Constructs thread that will read raw commands from hub
 
Method Summary
protected  void onReadingCommand()
           
private  void onTimeout()
           
 void start()
          Starts the InputThread thread.
 
Methods inherited from class org.elite.jdcbot.framework.InputThread
run, stop
 
Methods inherited from class org.elite.jdcbot.framework.DCIO
parseCmdArgs, parseCmdName, parseRawCmd, ReadCommand, ReadCommand, SendCommand, SendCommand, set_IOExceptionMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeout

private long timeout

timer

private TimeoutInputThread.Timer timer
Constructor Detail

TimeoutInputThread

public TimeoutInputThread(InputThreadTarget inputThreadTrgt,
                          java.io.InputStream in)
Constructs thread that will read raw commands from hub

Parameters:
inputThreadTrgt - InputThreadTarget instance
in - InputStream class from which we will read.
Method Detail

onReadingCommand

protected void onReadingCommand()
Overrides:
onReadingCommand in class InputThread

start

public void start()
Description copied from class: InputThread
Starts the InputThread thread.

Overrides:
start in class InputThread

onTimeout

private void onTimeout()