edu.wpi.first.wpilibj.networktables2.connection
Class ConnectionMonitorThread
java.lang.Object
edu.wpi.first.wpilibj.networktables2.connection.ConnectionMonitorThread
- All Implemented Interfaces:
- PeriodicRunnable
public class ConnectionMonitorThread
- extends Object
- implements PeriodicRunnable
A periodic thread that repeatedly reads from a connection
- Author:
- Mitchell
Method Summary |
void |
run()
the method that will be called periodically on a thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionMonitorThread
public ConnectionMonitorThread(ConnectionAdapter adapter,
NetworkTableConnection connection)
- create a new monitor thread
- Parameters:
adapter
- connection
-
run
public void run()
throws InterruptedException
- Description copied from interface:
PeriodicRunnable
- the method that will be called periodically on a thread
- Specified by:
run
in interface PeriodicRunnable
- Throws:
InterruptedException
- thrown when the thread is supposed to be interrupted and stop (implementers should always let this exception fall through)
Copyright © 2013. All rights reserved.