((RegionFactory<Object, Object>) factory).setCustomEntryIdleTimeout( DeclarableTypeInstantiator.newInstance(eitl.getCustomExpiry(), cache));
if (maxInactiveInterval != RegionConfiguration.DEFAULT_MAX_INACTIVE_INTERVAL) { factory.setStatisticsEnabled(true); factory.setCustomEntryIdleTimeout(new SessionCustomExpiry()); factory.addCacheListener(new SessionExpirationCacheListener());
.thenAnswer(newSetter(concurrencyLevel, mockRegionFactory)); when(mockRegionFactory.setCustomEntryIdleTimeout(any(CustomExpiry.class))) .thenAnswer(newSetter(customEntryIdleTimeout, mockRegionFactory));
if (maxInactiveInterval != RegionConfiguration.DEFAULT_MAX_INACTIVE_INTERVAL) { factory.setStatisticsEnabled(true); factory.setCustomEntryIdleTimeout(new SessionCustomExpiry()); factory.addCacheListener(new SessionExpirationCacheListener());
regionFactory.setConcurrencyChecksEnabled(regionAttributes.getConcurrencyChecksEnabled()); regionFactory.setConcurrencyLevel(regionAttributes.getConcurrencyLevel()); regionFactory.setCustomEntryIdleTimeout(regionAttributes.getCustomEntryIdleTimeout()); regionFactory.setCustomEntryTimeToLive(regionAttributes.getCustomEntryTimeToLive()); regionFactory.setDiskSynchronous(regionAttributes.isDiskSynchronous());
regionFactory.setConcurrencyChecksEnabled(regionAttributes.getConcurrencyChecksEnabled()); regionFactory.setConcurrencyLevel(regionAttributes.getConcurrencyLevel()); regionFactory.setCustomEntryIdleTimeout(regionAttributes.getCustomEntryIdleTimeout()); regionFactory.setCustomEntryTimeToLive(regionAttributes.getCustomEntryTimeToLive()); regionFactory.setDiskSynchronous(regionAttributes.isDiskSynchronous());