com.hazelcast.config
Class MaxSizeConfigReadOnly
java.lang.Object
com.hazelcast.config.MaxSizeConfig
com.hazelcast.config.MaxSizeConfigReadOnly
- All Implemented Interfaces:
- DataSerializable, Serializable
public class MaxSizeConfigReadOnly
- extends MaxSizeConfig
Contains the configuration for a size of Map.
- See Also:
- Serialized Form
MaxSizeConfigReadOnly
public MaxSizeConfigReadOnly(MaxSizeConfig config)
setSize
public MaxSizeConfig setSize(int size)
- Description copied from class:
MaxSizeConfig
- Sets the maximum size of the map.
- Overrides:
setSize
in class MaxSizeConfig
- Parameters:
size
- the maximum size of the map
- Returns:
- the map MaxSizeConfig
setMaxSizePolicy
public MaxSizeConfig setMaxSizePolicy(MaxSizeConfig.MaxSizePolicy maxSizePolicy)
- Description copied from class:
MaxSizeConfig
- Ses the maximum size policy of the map.
- Overrides:
setMaxSizePolicy
in class MaxSizeConfig
- Parameters:
maxSizePolicy
- the maximum size policy to set for the map
- Returns:
- this MaxSizeConfig
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.