com.hazelcast.config
Class MaxSizeConfigReadOnly

java.lang.Object
  extended by com.hazelcast.config.MaxSizeConfig
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.hazelcast.config.MaxSizeConfig
MaxSizeConfig.MaxSizePolicy
 
Field Summary
 
Fields inherited from class com.hazelcast.config.MaxSizeConfig
DEFAULT_MAX_SIZE
 
Constructor Summary
MaxSizeConfigReadOnly(MaxSizeConfig config)
           
 
Method Summary
 MaxSizeConfig setMaxSizePolicy(MaxSizeConfig.MaxSizePolicy maxSizePolicy)
          Ses the maximum size policy of the map.
 MaxSizeConfig setSize(int size)
          Sets the maximum size of the map.
 
Methods inherited from class com.hazelcast.config.MaxSizeConfig
getAsReadOnly, getMaxSizePolicy, getSize, readData, toString, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxSizeConfigReadOnly

public MaxSizeConfigReadOnly(MaxSizeConfig config)
Method Detail

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.