com.hazelcast.config
Class CacheEvictionConfigReadOnly

java.lang.Object
  extended by com.hazelcast.config.CacheEvictionConfig
      extended by com.hazelcast.config.CacheEvictionConfigReadOnly
All Implemented Interfaces:
EvictionConfig, DataSerializable, Serializable

public class CacheEvictionConfigReadOnly
extends CacheEvictionConfig

Contains the configuration for a size of cache.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.hazelcast.config.CacheEvictionConfig
CacheEvictionConfig.CacheMaxSizePolicy
 
Field Summary
 
Fields inherited from class com.hazelcast.config.CacheEvictionConfig
DEFAULT_MAX_ENTRY_COUNT
 
Constructor Summary
CacheEvictionConfigReadOnly(CacheEvictionConfig config)
           
 
Method Summary
 CacheEvictionConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
           
 CacheEvictionConfig setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy)
           
 CacheEvictionConfig setSize(int size)
           
 
Methods inherited from class com.hazelcast.config.CacheEvictionConfig
getAsReadOnly, getEvictionPolicy, getEvictionPolicyType, getEvictionStrategyType, getMaxSizePolicy, getSize, readData, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEvictionConfigReadOnly

public CacheEvictionConfigReadOnly(CacheEvictionConfig config)
Method Detail

setSize

public CacheEvictionConfig setSize(int size)
Overrides:
setSize in class CacheEvictionConfig

setMaxSizePolicy

public CacheEvictionConfig setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy)
Overrides:
setMaxSizePolicy in class CacheEvictionConfig

setEvictionPolicy

public CacheEvictionConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
Overrides:
setEvictionPolicy in class CacheEvictionConfig


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.