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 given TransportI, using the default timeout.
|
TransportWatchdog(TransportI _transport,
java.lang.String _title,
long _timeoutInMillis)
Creates a new TransportWatchdog for the given TransportI with a specified timeout.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The TimerTask's run method, executed if the watchdog's timer has not been cancelled.
|
void |
stop()
Cancels this watchdog by cancelling its timer.
|
public TransportWatchdog(TransportI _transport, java.lang.String _title)
DEFAULT_TIMEOUT_MILLISECS milliseconds
unless the watchdog is cancelled. The timer is named using the provided title
(if any) as a suffix and is scheduled upon construction._transport - The TransportI to monitor._title - A suffix for the timer's name (optional).public TransportWatchdog(TransportI _transport, java.lang.String _title, long _timeoutInMillis)
_transport - The TransportI to monitor._title - A suffix for the timer's name (optional)._timeoutInMillis - The timeout in milliseconds before closing the TransportI.public void stop()
public void run()
run in interface java.lang.RunnableCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.