Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::config::eviction_config Class Reference

Configuration for eviction. More...

#include <eviction_config.h>

Public Types

enum  max_size_policy { ENTRY_COUNT }
 Maximum Size Policy. More...
 

Public Member Functions

int32_t get_size () const
 
eviction_configset_size (int32_t size)
 
max_size_policy get_maximum_size_policy () const
 
eviction_configset_maximum_size_policy (const max_size_policy &max_size_policy)
 
eviction_policy get_eviction_policy () const
 
eviction_configset_eviction_policy (eviction_policy policy)
 
eviction_strategy_type get_eviction_strategy_type () const
 

Static Public Attributes

static constexpr int32_t DEFAULT_MAX_ENTRY_COUNT = INT32_MAX
 Default maximum entry count.
 
static constexpr max_size_policy DEFAULT_MAX_SIZE_POLICY = max_size_policy::ENTRY_COUNT
 Default Max-Size Policy.
 
static constexpr eviction_policy DEFAULT_EVICTION_POLICY = eviction_policy::LRU
 Default Eviction Policy.
 

Protected Attributes

int32_t size_
 
max_size_policy max_size_policy_
 
eviction_policy eviction_policy_
 

Friends

std::ostream HAZELCAST_API & operator<< (std::ostream &out, const eviction_config &config)
 

Detailed Description

Configuration for eviction.

You can set a limit for number of entries or total memory cost of entries.

Definition at line 37 of file eviction_config.h.

Member Enumeration Documentation

◆ max_size_policy

Maximum Size Policy.

Enumerator
ENTRY_COUNT 

Policy based on maximum number of entries stored per data structure (map, cache etc)

Definition at line 44 of file eviction_config.h.

44  {
49  /* TODO,
50  *
51  * Policy based on maximum used native memory in megabytes per data structure (map, cache etc)
52  * on each Hazelcast instance
53 
54  USED_NATIVE_MEMORY_SIZE,
55  *
56  * Policy based on maximum used native memory percentage per data structure (map, cache etc)
57  * on each Hazelcast instance
58 
59  USED_NATIVE_MEMORY_PERCENTAGE,
60  *
61  * Policy based on minimum free native memory in megabytes per Hazelcast instance
62 
63  FREE_NATIVE_MEMORY_SIZE,
64  *
65  * Policy based on minimum free native memory percentage per Hazelcast instance
66 
67  FREE_NATIVE_MEMORY_PERCENTAGE*/
68  };
@ ENTRY_COUNT
Policy based on maximum number of entries stored per data structure (map, cache etc)

The documentation for this class was generated from the following files: