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
 Default Max-Size Policy. More...
 
static constexpr eviction_policy DEFAULT_EVICTION_POLICY
 Default Eviction Policy. More...
 

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 45 of file eviction_config.h.

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

Member Data Documentation

◆ DEFAULT_EVICTION_POLICY

constexpr eviction_policy hazelcast::client::config::eviction_config::DEFAULT_EVICTION_POLICY
staticconstexpr
Initial value:
=
eviction_policy::LRU

Default Eviction Policy.

Definition at line 91 of file eviction_config.h.

◆ DEFAULT_MAX_SIZE_POLICY

constexpr max_size_policy hazelcast::client::config::eviction_config::DEFAULT_MAX_SIZE_POLICY
staticconstexpr
Initial value:
=
max_size_policy::ENTRY_COUNT

Default Max-Size Policy.

Definition at line 85 of file eviction_config.h.


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