Package com.sun.jini.discovery
Class UnicastSocketTimeout
java.lang.Object
com.sun.jini.discovery.UnicastSocketTimeout
- All Implemented Interfaces:
Serializable,InvocationConstraint
public final class UnicastSocketTimeout
extends Object
implements InvocationConstraint, Serializable
Represents a constraint on the timeout set on sockets used for unicast discovery. Lookup
services and discovery clients can use this constraint to specify the maximum length of time that
reads of unicast discovery data will block.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnicastSocketTimeout(int timeout) Creates aUnicastSocketTimeoutconstraint for the given timeout. -
Method Summary
-
Constructor Details
-
UnicastSocketTimeout
public UnicastSocketTimeout(int timeout) Creates aUnicastSocketTimeoutconstraint for the given timeout.- Parameters:
timeout- the socket timeout- Throws:
IllegalArgumentException- if the given timeout is negative
-
-
Method Details