Package com.sun.jini.discovery
Class MulticastTimeToLive
java.lang.Object
com.sun.jini.discovery.MulticastTimeToLive
- All Implemented Interfaces:
Serializable,InvocationConstraint
Represents a constraint on the time to live (TTL) value set on outgoing multicast request and
multicast announcement packets. Lookup services and discovery clients can use this constraint to
specify the range of multicast transmissions used in discovery.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum permissible time to live value. -
Constructor Summary
ConstructorsConstructorDescriptionMulticastTimeToLive(int ttl) Creates aMulticastTimeToLiveconstraint for the given time to live value. -
Method Summary
-
Field Details
-
MAX_TIME_TO_LIVE
public static final int MAX_TIME_TO_LIVEThe maximum permissible time to live value.- See Also:
-
-
Constructor Details
-
MulticastTimeToLive
public MulticastTimeToLive(int ttl) Creates aMulticastTimeToLiveconstraint for the given time to live value.- Parameters:
ttl- the time to live value- Throws:
IllegalArgumentException- if the given value is negative or greater thanMAX_TIME_TO_LIVE.
-
-
Method Details