com.hazelcast.cache.impl.eviction
Class EvictionStrategyProvider

java.lang.Object
  extended by com.hazelcast.cache.impl.eviction.EvictionStrategyProvider

public final class EvictionStrategyProvider
extends Object

Provider to get any kind (EvictionStrategyType) of EvictionStrategy.


Method Summary
static EvictionStrategy getDefaultEvictionStrategy()
          Gets default EvictionStrategy implementation.
static EvictionStrategy getEvictionStrategy(EvictionConfig evictionConfig)
          Gets the EvictionStrategy implementation specified with evictionStrategyType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEvictionStrategy

public static EvictionStrategy getEvictionStrategy(EvictionConfig evictionConfig)
Gets the EvictionStrategy implementation specified with evictionStrategyType.

Parameters:
evictionConfig - EvictionConfig for requested EvictionStrategy implementation
Returns:
the requested EvictionStrategy implementation

getDefaultEvictionStrategy

public static EvictionStrategy getDefaultEvictionStrategy()
Gets default EvictionStrategy implementation.

Returns:
the default EvictionStrategy implementation


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.