On 2010-10-01, at 1:22 PM, Sanne Grinovero wrote:
2010/10/1 Vladimir Blagojevic <vblagoje(a)redhat.com>:
>
> On 2010-10-01, at 11:00 AM, Sanne Grinovero wrote:
>>
>> Hem, never heard of PIGGYBACK? where is that defined?
>>
>
>
http://docs.jboss.org/infinispan/4.1/apidocs/config.html#ce_default_eviction
> PIGGYBACK will most likely be the only and hence the default eviction policy starting
with 4.2, it effectively is in 4.1 as well.
from the code in org.infinispan.container.DefaultDataContainer (branch
4.2) it seems to me it's just an alias for the DEFAULT (one and only)
policy ?
switch (policy) {
case PIGGYBACK:
case DEFAULT:
evictionListener = new DefaultEvictionListener();
break;
default:
throw new IllegalArgumentException("No such eviction
thread policy " + strategy);
}
Exactly. Manik and I did not see a way to accommodate old DEFAULT policy so as things
stand right now eviction thread policy will always be piggyback.