public class IOIOConnectionManager
extends java.lang.Object
This class will take care of creating a thread for each possible IOIO connection, and cleaning up these threads. Client is responsible for providing the actual threads, by implementing the IOIOConnectionThreadProvider interface.
Basic usage is:
start(). This will invoke IOIOConnectionManager.IOIOConnectionThreadProvider.createThreadFromFactory(IOIOConnectionFactory)
for every possible connection (more precisely, for every IOIOConnectionFactory). Return null if you do not wish to create a thread for a certain connection type.stop(). This will call IOIOConnectionManager.Thread.abort() for each running thread and then join them.| Modifier and Type | Class and Description |
|---|---|
static interface |
IOIOConnectionManager.IOIOConnectionThreadProvider |
static class |
IOIOConnectionManager.Thread |
| Constructor and Description |
|---|
IOIOConnectionManager(IOIOConnectionManager.IOIOConnectionThreadProvider provider) |
public IOIOConnectionManager(IOIOConnectionManager.IOIOConnectionThreadProvider provider)