Package com.sun.jini.discovery
Class MulticastMaxPacketSize
java.lang.Object
com.sun.jini.discovery.MulticastMaxPacketSize
- All Implemented Interfaces:
Serializable,InvocationConstraint
public final class MulticastMaxPacketSize
extends Object
implements InvocationConstraint, Serializable
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.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe minimum allowable multicast packet size limit. -
Constructor Summary
ConstructorsConstructorDescriptionMulticastMaxPacketSize(int size) Creates aMulticastMaxPacketSizeconstraint for the given multicast packet size limit. -
Method Summary
-
Field Details
-
MIN_MAX_PACKET_SIZE
public static final int MIN_MAX_PACKET_SIZEThe minimum allowable multicast packet size limit.- See Also:
-
-
Constructor Details
-
MulticastMaxPacketSize
public MulticastMaxPacketSize(int size) Creates aMulticastMaxPacketSizeconstraint for the given multicast packet size limit.- Parameters:
size- the multicast packet size limit- Throws:
IllegalArgumentException- if the given size is less thanMIN_MAX_PACKET_SIZE.
-
-
Method Details