|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.io.ConnectionBase com.sun.spot.peripheral.RadioConnectionBase
public abstract class RadioConnectionBase
Abstract base class for classes that implement a radio Connection that can time out if an expected acknowledgment doesn't arrive for a sent packet.
Field Summary | |
---|---|
static long |
DEFAULT_TIMEOUT
Default timeout in milliseconds |
Constructor Summary | |
---|---|
RadioConnectionBase()
Default constructor initialises with infinite timeout. |
Method Summary | |
---|---|
long |
getTimeout()
Get the timeout for receiving information on this connection |
void |
setTimeout(long time)
Set the timeout for receiving information on this connection |
Methods inherited from class com.sun.squawk.io.ConnectionBase |
---|
close, open, openDataInputStream, openDataOutputStream, openInputStream, openOutputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_TIMEOUT
Constructor Detail |
---|
public RadioConnectionBase()
Method Detail |
---|
public void setTimeout(long time)
ITimeoutableConnection
setTimeout
in interface ITimeoutableConnection
time
- - Timeout period in milliseconds. Set this to -1 to turn off timeouts (infinite wait),
or to 0 or more to wait that long for data before throwing a TimeoutException.public long getTimeout()
ITimeoutableConnection
getTimeout
in interface ITimeoutableConnection
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |