The guide contains a list APIs that were deprecated or removed in 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.
Cache and Memory Metrics
The following methods were removed from CacheMetrics interface as part of migrating to new memory management architecture: getOverflowSize, getOffHeapMaxSize, getSwapGets, getSwapPuts, getSwapRemovals, getSwapHits, getSwapMisses, getSwapEntriesCount, getSwapSize, getSwapHitPercentage, getSwapMissPercentage.
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.
Redis Integration
Default Redis cache name was changed from 'null' to 'redis_cache'.
Dynamic Type Registration, Serializable Types
BinaryConfiguration is no longer required: any type can be used in Cache and Compute straight away. All objects are written in Ignite binary format (which means IBinary and SQL APIs always work).
Serializable types (including those which implement ISerializable) are also written using Ignite binary format.