com.hazelcast.config
Class MulticastConfig
java.lang.Object
com.hazelcast.config.MulticastConfig
- All Implemented Interfaces:
- DataSerializable, Serializable
public class MulticastConfig
- extends Object
- implements DataSerializable
- See Also:
- Serialized Form
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
- See Also:
- Constant Field Values
DEFAULT_MULTICAST_GROUP
public static final String DEFAULT_MULTICAST_GROUP
- See Also:
- Constant Field Values
DEFAULT_MULTICAST_PORT
public static final int DEFAULT_MULTICAST_PORT
- See Also:
- Constant Field Values
DEFAULT_MULTICAST_TIMEOUT_SECONDS
public static final int DEFAULT_MULTICAST_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
DEFAULT_MULTICAST_TTL
public static final int DEFAULT_MULTICAST_TTL
- See Also:
- Constant Field Values
MulticastConfig
public MulticastConfig()
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
setEnabled
public MulticastConfig setEnabled(boolean enabled)
- Parameters:
enabled
- the enabled to set
getMulticastGroup
public String getMulticastGroup()
- Returns:
- the multicastGroup
setMulticastGroup
public MulticastConfig setMulticastGroup(String multicastGroup)
- Parameters:
multicastGroup
- the multicastGroup to set
getMulticastPort
public int getMulticastPort()
- Returns:
- the multicastPort
setMulticastPort
public MulticastConfig setMulticastPort(int multicastPort)
- Parameters:
multicastPort
- the multicastPort to set
getMulticastTimeoutSeconds
public int getMulticastTimeoutSeconds()
- Returns:
- the multicastTimeoutSeconds
setMulticastTimeoutSeconds
public MulticastConfig setMulticastTimeoutSeconds(int multicastTimeoutSeconds)
- Parameters:
multicastTimeoutSeconds
- the multicastTimeoutSeconds to set
getTrustedInterfaces
public Set<String> getTrustedInterfaces()
setTrustedInterfaces
public MulticastConfig setTrustedInterfaces(Set<String> interfaces)
addTrustedInterface
public MulticastConfig addTrustedInterface(String ip)
getMulticastTimeToLive
public int getMulticastTimeToLive()
setMulticastTimeToLive
public MulticastConfig setMulticastTimeToLive(int multicastTimeToLive)
writeData
public void writeData(DataOutput out)
throws IOException
- Specified by:
writeData
in interface DataSerializable
- Throws:
IOException
readData
public void readData(DataInput in)
throws IOException
- Specified by:
readData
in interface DataSerializable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.