com.sun.jini.discovery
Class MulticastTimeToLive
java.lang.Object
  
com.sun.jini.discovery.MulticastTimeToLive
- All Implemented Interfaces: 
 - Serializable, InvocationConstraint
 
public final class MulticastTimeToLive
- extends Object
- implements InvocationConstraint, Serializable
  
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:
 - Serialized Form
 
| 
Field Summary | 
static int | 
MAX_TIME_TO_LIVE
 
          The maximum permissible time to live value. | 
 
| 
Constructor Summary | 
MulticastTimeToLive(int ttl)
 
          Creates a MulticastTimeToLive constraint for the given time
 to live value. | 
 
 
 
MAX_TIME_TO_LIVE
public static final int MAX_TIME_TO_LIVE
- The maximum permissible time to live value.
- See Also:
 - Constant Field Values
 
 
MulticastTimeToLive
public MulticastTimeToLive(int ttl)
- Creates a 
MulticastTimeToLive constraint for the given time
 to live value.
- Parameters:
 ttl - the time to live value
- Throws:
 IllegalArgumentException - if the given value is negative or
 greater than MAX_TIME_TO_LIVE.
 
getTimeToLive
public int getTimeToLive()
- Returns the time to live value.
 
- Returns:
 - the time to live value
 
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
equals
public boolean equals(Object obj)
- Overrides:
 equals in class Object
 
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
Copyright © GigaSpaces.