Package com.kristensoft.kdc
Class MulticastSocketOptions
- java.lang.Object
-
- com.kristensoft.kdc.UdpSocketOptions
-
- com.kristensoft.kdc.MulticastSocketOptions
-
public final class MulticastSocketOptions extends UdpSocketOptions
Defines socket options for multicast communication.Multicast socket options include the UDP socket options inherited from
UdpSocketOptions, along with multicast-specific settings for time-to-live, loopback mode, and the network interface.Options that are not explicitly configured use the underlying socket implementation's defaults, except for reuse address, which defaults to
true.Instances are created using the
MulticastSocketOptions.Builder.- Author:
- Charles B. Kozoyed
- See Also:
UdpSocketOptions,MulticastClient,MulticastSocketOptions.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMulticastSocketOptions.BuilderBuildsMulticastSocketOptionsinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetLoopbackModeDisabled()Returns whether multicast loopback mode is disabled.NetworkInterfacegetNetworkInterface()Returns the network interface used for multicast communication.IntegergetTimeToLive()Returns the configured multicast time-to-live.-
Methods inherited from class com.kristensoft.kdc.UdpSocketOptions
getBroadcast, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass
-
-
-
-
Method Detail
-
getTimeToLive
public Integer getTimeToLive()
Returns the configured multicast time-to-live.- Returns:
- the multicast time-to-live, or
nullif the underlying socket default is used
-
getLoopbackModeDisabled
public Boolean getLoopbackModeDisabled()
Returns whether multicast loopback mode is disabled.- Returns:
trueif loopback mode is disabled,falseif enabled, ornullif the underlying socket default is used
-
getNetworkInterface
public NetworkInterface getNetworkInterface()
Returns the network interface used for multicast communication.- Returns:
- the configured network interface, or
nullif the underlying socket default is used
-
-