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 |
---|---|
boolean |
equals(Object o) |
MaxSizeConfigReadOnly |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
MaxSizeConfig.MaxSizePolicy |
getMaxSizePolicy()
Returns the maximum size policy of the map.
|
int |
getSize()
Returns the size of the map.
|
int |
hashCode() |
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
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.