|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectioio.lib.util.IOIOConnectionManager
public class IOIOConnectionManager
Manages IOIO threads per connection.
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.
| Nested Class Summary | |
|---|---|
static interface |
IOIOConnectionManager.IOIOConnectionThreadProvider
|
static class |
IOIOConnectionManager.Thread
|
| Constructor Summary | |
|---|---|
IOIOConnectionManager(IOIOConnectionManager.IOIOConnectionThreadProvider provider)
|
|
| Method Summary | |
|---|---|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOIOConnectionManager(IOIOConnectionManager.IOIOConnectionThreadProvider provider)
| Method Detail |
|---|
public void start()
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||