com.hazelcast.config
public class MaxSizeConfig extends Object implements DataSerializable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MaxSizeConfig.MaxSizePolicy
Maximum Size Policy
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE
Default maximum size of map.
|
Constructor and Description |
---|
MaxSizeConfig() |
MaxSizeConfig(int size,
MaxSizeConfig.MaxSizePolicy maxSizePolicy) |
MaxSizeConfig(MaxSizeConfig config) |
Modifier and Type | Method and Description |
---|---|
MaxSizeConfigReadOnly |
getAsReadOnly() |
MaxSizeConfig.MaxSizePolicy |
getMaxSizePolicy()
Returns the maximum size policy of the map.
|
int |
getSize()
Returns the size of the map.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
MaxSizeConfig |
setMaxSizePolicy(MaxSizeConfig.MaxSizePolicy maxSizePolicy)
Ses the maximum size policy of the map.
|
MaxSizeConfig |
setSize(int size)
Sets the maximum size of the map.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final int DEFAULT_MAX_SIZE
public MaxSizeConfig()
public MaxSizeConfig(int size, MaxSizeConfig.MaxSizePolicy maxSizePolicy)
public MaxSizeConfig(MaxSizeConfig config)
public MaxSizeConfigReadOnly getAsReadOnly()
public int getSize()
public MaxSizeConfig setSize(int size)
size
- the maximum size of the mappublic MaxSizeConfig.MaxSizePolicy getMaxSizePolicy()
public MaxSizeConfig setMaxSizePolicy(MaxSizeConfig.MaxSizePolicy maxSizePolicy)
maxSizePolicy
- the maximum size policy to set for the mappublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.