hazelcast/hazelcast — pull request #3148 by ahmetmircik (2014-08-05 08:13:30+00:00)
Title: Fixes #2910: Add checkIfEvictableAfterMillis to MapConfig

Issue is here #2910

Currently we have a hard-coded time window in milliseconds (1000 millis) that we check before asking whether a partition should be evicted or not before every put operation, we have this time window because checking a partition's readiness for eviction for every put operation may be an expensive operation. But also this time window might be a reason of a possible OOM if one makes lots of put operations in that specific time window since eviction will not be triggered.

With this PR we are making the minimum time which should pass before asking if a partition of a map is evictable or not configurable and setting the default value to 0.