The guide contains a list APIs that were deprecated or removed in Apache Ignite 2.0 incorporate tremendous changes that make it different from Apache Ignite 1.x releases. Apache Ignite 2.0 and provides alternate APIs which you can use to migrate to from the deprecated or removed ones.
Eviction Policies
To enable eviction in regular cache, choose one of page-based eviction algorithms with MemoryPolicyConfiguration#setPageEvictionMode. More info about page-based eviction can be found in javadocs of MemoryPolicyConfiguration and DataPageEvictionMode.
Cache Memory Modes:
Memory Policies
Managing of memory regions where caches store their data is done via MemoryConfiguration and MemoryPolicyConfiguration entities; detailed information is presented in javadocs of these classes. Also MemoryPoliciesExample provides some sample configurations on this topic.
IgniteConfiguration
getGridName/setGridName declared deprecated and getIgniteInstanceName/setIgniteInstanceName should be used instead.
is incompatible with previous versions and, most likely, application code has to be altered if someone plans to migrate to 2.0. Below you will find the main public API changes introduced in version 2.0.
Apache Ignite 2.0 and later versions are based on the new off-heap memory architecture that is well explained in this documentation: https://apacheignite.readme.io/docs/page-memory
Look over the documentation above to learn more about new concepts and configuration parameters. The sections below list APIs existed prior to 2.0 and that was reworked in the latest version.
Cache Memory Modes:
Eviction Policies
Previously existed eviction mechanisms based on `EvictionPolicy` is now supported only for optional near and Java heap caching of the data stored in the off-heap page memory. To enable the eviction for the page memory, use `DataPageEvictionMode` enumeration. Refer to this documentation for more details: https://apacheignite.readme.io/docs/evictions
Cache and Memory Metrics
Cache and Memory Metrics
The following methods were removed from CacheMetrics `CacheMetrics` interface as part of migrating to new memory management a migration to the off-heap memory architecture: getOverflowSize, getOffHeapMaxSize, getSwapGets, getSwapPuts, getSwapRemovals, getSwapHits, getSwapMisses, getSwapEntriesCount, getSwapSize, getSwapHitPercentage, getSwapMissPercentage.
To support the new memory architecture, `MemoryMetrics` New MemoryMetrics interface was introduced to monitor off-heap memory consumption and usage. More information about its usage is available in javadoc on this class.in order to get insights on a state and behavior of the memory in runtime. Refer to this documentation if you plan to leverage from this interface: https://apacheignite.readme.io/docs/memory-metrics
Default Cache Name
`null` can no longer be used as a cache name. If a cache is started with an empty named then it will be named `default` and you can get it using either `Ignite.cache(null)` or `Ignite.cache("default")` calls.
IgniteConfiguration's `getGridName/setGridName` methods are deprecated and will be removed in later releases. Use IgniteConfiguration's `getIgniteInstanceName/setIgniteInstanceName` instead.
Redis Integration
Default Redis cache name was changed from 'null' to 'redis_cache'.
...