|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.discovery.MulticastMaxPacketSize
public final class MulticastMaxPacketSize
Represents a constraint on the size (in bytes) of multicast packets used in the multicast request and multicast announcement discovery protocols. Lookup services and discovery clients can use this constraint to limit the size of multicast request and announcement packets sent, so as to avoid fragmentation or loss when the packets traverse routers. This constraint can also be used to control the size of the buffers used to receive incoming multicast request and announcement packets.
Field Summary | |
---|---|
static int |
MIN_MAX_PACKET_SIZE
The minimum allowable multicast packet size limit. |
private static long |
serialVersionUID
|
private int |
size
The multicast packet size limit. |
Constructor Summary | |
---|---|
MulticastMaxPacketSize(int size)
Creates a MulticastMaxPacketSize constraint for the given
multicast packet size limit. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getSize()
Returns the multicast packet size limit. |
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 MIN_MAX_PACKET_SIZE
private final int size
Constructor Detail |
---|
public MulticastMaxPacketSize(int size)
MulticastMaxPacketSize
constraint for the given
multicast packet size limit.
size
- the multicast packet size limit
IllegalArgumentException
- if the given size is less than
MIN_MAX_PACKET_SIZE
.Method Detail |
---|
public int getSize()
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 |