public class TransportWatchdog
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
TransportWatchdog(TransportI _transport,
java.lang.String _title)
Creates a new TransportWatchdog for the passed TransportI.
|
TransportWatchdog(TransportI _transport,
java.lang.String _title,
long _timeout)
Creates a new TransportWatchdog for the passed TransportI.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
TimerTask run-method which runs if the Timer of this watchdog was not cancelled.
|
void |
stop()
Marks this watchdog as cancelled by cancelling its Timer.
|
public TransportWatchdog(TransportI _transport, java.lang.String _title)
_transport
- the TransportI to watch_title
- suffix for the name of the Timer that is scheduledpublic TransportWatchdog(TransportI _transport, java.lang.String _title, long _timeout)
_transport
- the TransportI to watch_title
- suffix for the name of the Timer that is scheduled_timeout
- timeout in milliseconds after which the TransportI will be closed if we are not cancelledpublic void stop()
public void run()
run
in interface java.lang.Runnable
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.