SunSPOT API V3.0


com.sun.spot.peripheral
Interface ITimeoutableConnection

All Known Subinterfaces:
RadioConnection, RadiogramConnection, RadiostreamConnection
All Known Implementing Classes:
Protocol, RadioConnectionBase, RadiogramConnImpl

public interface ITimeoutableConnection

This interface represents any Connection between a pair of Spots that can timeout on receiving data.


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
 

Method Detail

setTimeout

void setTimeout(long time)
Set the timeout for receiving information on this connection

Parameters:
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.

getTimeout

long getTimeout()
Get the timeout for receiving information on this connection

Returns:
- Timeout period in milliseconds. Answers -1 for infinite wait.

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.