public final class MulticastMaxPacketSize extends Object implements InvocationConstraint, Serializable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
MulticastMaxPacketSize(int size)
Creates a
MulticastMaxPacketSize constraint for the given
multicast packet size limit. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getSize()
Returns the multicast packet size limit.
|
int |
hashCode() |
private void |
readObject(ObjectInputStream in) |
String |
toString() |
private static final long serialVersionUID
public static final int MIN_MAX_PACKET_SIZE
private final int size
public MulticastMaxPacketSize(int size)
MulticastMaxPacketSize constraint for the given
multicast packet size limit.size - the multicast packet size limitIllegalArgumentException - if the given size is less than
MIN_MAX_PACKET_SIZE.public int getSize()
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.