Configuration for eviction. More...
#include <EvictionConfig.h>
Public Types | |
enum | MaxSizePolicy { ENTRY_COUNT } |
Maximum Size Policy. More... | |
Public Member Functions | |
EvictionConfig (int size, MaxSizePolicy maxSizePolicy, const boost::shared_ptr< internal::eviction::EvictionPolicyComparator< K, V > > &comparator) | |
int32_t | getSize () const |
EvictionConfig & | setSize (int32_t size) |
MaxSizePolicy | getMaximumSizePolicy () const |
EvictionConfig & | setMaximumSizePolicy (const MaxSizePolicy &maxSizePolicy) |
EvictionPolicy | getEvictionPolicy () const |
EvictionConfig< K, V > & | setEvictionPolicy (EvictionPolicy policy) |
const boost::shared_ptr < internal::eviction::EvictionPolicyComparator < K, V > > | getComparator () const |
Gets the class name of the configured EvictionPolicyComparator implementation. More... | |
EvictionConfig & | setComparator (const boost::shared_ptr< internal::eviction::EvictionPolicyComparator< K, V > > &comparator) |
internal::eviction::EvictionStrategyType::Type | getEvictionStrategyType () const |
Gets the type of eviction strategy. More... | |
internal::eviction::EvictionPolicyType | getEvictionPolicyType () const |
Gets the type of eviction policy. More... | |
std::ostream & | operator<< (std::ostream &out) |
Static Public Attributes | |
static const int32_t | DEFAULT_MAX_ENTRY_COUNT = INT32_MAX |
Default maximum entry count. | |
static const MaxSizePolicy | DEFAULT_MAX_SIZE_POLICY = ENTRY_COUNT |
Default Max-Size Policy. | |
static const EvictionPolicy | DEFAULT_EVICTION_POLICY = LRU |
Default Eviction Policy. | |
Protected Attributes | |
int32_t | size |
MaxSizePolicy | maxSizePolicy |
EvictionPolicy | evictionPolicy |
boost::shared_ptr < internal::eviction::EvictionPolicyComparator < K, V > > | comparator |
Configuration for eviction.
You can set a limit for number of entries or total memory cost of entries.
enum hazelcast::client::config::EvictionConfig::MaxSizePolicy |
|
inlinevirtual |
Gets the class name of the configured EvictionPolicyComparator implementation.
Reimplemented from hazelcast::client::internal::eviction::EvictionConfiguration< K, V >.
|
inlinevirtual |
Gets the type of eviction policy.
Implements hazelcast::client::internal::eviction::EvictionConfiguration< K, V >.
|
inlinevirtual |
Gets the type of eviction strategy.
Implements hazelcast::client::internal::eviction::EvictionConfiguration< K, V >.