You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

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. 

TcpDiscoveryS3IpFinder
  • TcpDiscoveryS3IpFinder.setAwsCredentials(AWSCredentialsProvider) renamed to TcpDiscoveryS3IpFinder.setAwsCredentialsProvider(AWSCredentialsProvider)
Evcition Policies
  • Existing eviction mechanism based on EvictionPolicy is now supported only in near and onheap caches.
  • 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:

  • All the cache memory modes, previously defined by CacheMemoryMode, are no longer supported. Off-heap mode that is a basis of the new page memory is used by default.
  • CachePeekMode.SWAP is no longer supported.

IgniteConfiguration

getGridName/setGridName declared deprecated and getIgniteInstanceName/setIgniteInstanceName should be used instead.

Ignite.NET

  • CompiledQuery class removed, CompiledQuery2 class renamed to CompiledQuery. If you have used CompiledQuery class, there is nothing to change. Existing code should compile. If you have used CompiledQuery2 class, rename usages to CompiledQuery.
  • CacheEvent.LockId has been removed. It was always null previously.
  • BinaryConfiguration properties renamed: DefaultNameMapper -> NameMapper, DefaultIdMapper -> IdMapper, DefaultKeepDeserialized -> KeepDeserialized
  • ILifecycleBean renamed to ILifecycleHandler, IgniteConfiguration.LifecycleBeans -> IgniteConfiguration.LifecycleHandlers

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.

  • No labels