de.mud.jta.plugin
Class Timeout
- FilterPlugin, PluginListener, Runnable, SocketListener
The timeout plugin looks at the incoming and outgoing data stream and
tries to close the connection gracefully if the timeout occured or if
not graceful exit command was configured simply closed the connection.
Maintainer: Matthias L. Jugel
$Id: Timeout.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
timeout
protected int timeout
timeoutCommand
protected String timeoutCommand
timeoutThread
protected Thread timeoutThread
timeoutWarning
protected String timeoutWarning
Timeout
public Timeout(PluginBus bus,
String id)
Create the new timeout plugin.
connect
public void connect(String host,
int port)
throws IOException
Start the timeout countdown.
- connect in interface SocketListener
run
public void run()
Sleep for the timeout beeing. The thread gets interrupted if data
is transmitted and will shutdown the connection as soon as the
timeout wakes up normally.