public final class MulticastTimeToLive extends Object implements InvocationConstraint, Serializable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
MulticastTimeToLive(int ttl)
Creates a
MulticastTimeToLive constraint for the given time
to live value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getTimeToLive()
Returns the time to live value.
|
int |
hashCode() |
private void |
readObject(ObjectInputStream in) |
String |
toString() |
private static final long serialVersionUID
public static final int MAX_TIME_TO_LIVE
private final int ttl
public MulticastTimeToLive(int ttl)
MulticastTimeToLive constraint for the given time
to live value.ttl - the time to live valueIllegalArgumentException - if the given value is negative or
greater than MAX_TIME_TO_LIVE.public int getTimeToLive()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.