com.hazelcast.config
Class Interfaces
java.lang.Object
com.hazelcast.config.Interfaces
- All Implemented Interfaces:
- DataSerializable, Serializable
public class Interfaces
- extends Object
- implements DataSerializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interfaces
public Interfaces()
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
setEnabled
public Interfaces setEnabled(boolean enabled)
- Parameters:
enabled
- the enabled to set
addInterface
public Interfaces addInterface(String ip)
- Adds a new interface
- Parameters:
ip
-
clear
public Interfaces clear()
- clears all interfaces.
getInterfaces
public Collection<String> getInterfaces()
- Returns:
- a read-only collection of interfaces
setInterfaces
public Interfaces setInterfaces(Collection<String> interfaces)
- Adds a collection of interfaces.
Clears the current collection and then adds all entries of new collection.
- Parameters:
interfaces
- the interfaces to set
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
Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.