|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.discovery.MulticastTimeToLive
public final class MulticastTimeToLive
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.
Field Summary | |
---|---|
static int |
MAX_TIME_TO_LIVE
The maximum permissible time to live value. |
private static long |
serialVersionUID
|
private int |
ttl
The time to live value. |
Constructor Summary | |
---|---|
MulticastTimeToLive(int ttl)
Creates a MulticastTimeToLive constraint for the given time
to live value. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getTimeToLive()
Returns the time to live value. |
int |
hashCode()
|
private void |
readObject(ObjectInputStream in)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final int MAX_TIME_TO_LIVE
private final int ttl
Constructor Detail |
---|
public MulticastTimeToLive(int ttl)
MulticastTimeToLive
constraint for the given time
to live value.
ttl
- the time to live value
IllegalArgumentException
- if the given value is negative or
greater than MAX_TIME_TO_LIVE
.Method Detail |
---|
public int getTimeToLive()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |