/** * Sets the custom idleTimeout for the next <code>RegionAttributes</code> * created. * * @param custom the custom method * @return the receiver * @see AttributesFactory#setCustomEntryIdleTimeout(CustomExpiry) */ public RegionFactory<K,V> setCustomEntryIdleTimeout(CustomExpiry<K,V> custom) { this.attrsFactory.setCustomEntryIdleTimeout(custom); return this; }
/** * Sets the custom idleTimeout for the next <code>RegionAttributes</code> * created. * * @param custom the custom method * @return the receiver * @see AttributesFactory#setCustomEntryIdleTimeout(CustomExpiry) */ public RegionFactory<K,V> setCustomEntryIdleTimeout(CustomExpiry<K,V> custom) { this.attrsFactory.setCustomEntryIdleTimeout(custom); return this; }
public ClientRegionFactory<K,V> setCustomEntryIdleTimeout(CustomExpiry<K,V> custom) { this.attrsFactory.setCustomEntryIdleTimeout(custom); return this; }
public ClientRegionFactory<K,V> setCustomEntryIdleTimeout(CustomExpiry<K,V> custom) { this.attrsFactory.setCustomEntryIdleTimeout(custom); return this; }
new ExpirationAttributes(timeout, ExpirationAction.INVALIDATE); factory.setCustomEntryIdleTimeout(new TestExpiry(key2, expire)); factory.setStatisticsEnabled(true); TestCacheListener list = new TestCacheListener() {
ExpirationAttributes expire2 = new ExpirationAttributes(0, ExpirationAction.INVALIDATE); factory.setCustomEntryIdleTimeout(new TestExpiry(key2, expire2)); factory.setStatisticsEnabled(true); TestCacheListener list = new TestCacheListener() {
new ExpirationAttributes(timeout, ExpirationAction.INVALIDATE); factory.setCustomEntryIdleTimeout(new TestExpiry(key1, expire)); factory.setStatisticsEnabled(true); TestCacheListener list = new TestCacheListener() {
public void run() { Cache cache = getCache(); DiskStore ds = cache.findDiskStore("disk"); if(ds == null) { ds = cache.createDiskStoreFactory() .setDiskDirs(getDiskDirs()).create("disk"); } AttributesFactory af = new AttributesFactory(); PartitionAttributesFactory paf = new PartitionAttributesFactory(); af.setPartitionAttributes(paf.create()); af.setCustomEntryIdleTimeout(new TestCustomExpiration()); af.setEntryIdleTimeout(new ExpirationAttributes(60, ExpirationAction.INVALIDATE)); af.setDataPolicy(DataPolicy.PERSISTENT_PARTITION); af.setDiskStoreName("disk"); RegionAttributes attr = af.create(); cache.createRegion(PR_REGION_NAME, attr); } };
new ExpirationAttributes(timeout1, ExpirationAction.INVALIDATE); factory.setCustomEntryIdleTimeout(new TestExpiry(key1, expire1)); factory.setStatisticsEnabled(true); TestCacheListener list = new TestCacheListener() {
f.setCustomEntryIdleTimeout(this.getCustomEntryIdleTimeoutInstance()); f.setCustomEntryTimeToLive(this.getCustomEntryTimeToLiveInstance()); f.setDataPolicy(this.getDataPolicy());