@Override public ClientRegionFactory<K, V> setCustomEvictionAttributes( EvictionCriteria<K, V> criteria, long start, long interval) { this.attrsFactory.setCustomEvictionAttributes(criteria, start, interval); return this; }
/** * Set custom {@link EvictionCriteria} for the region with start time and * interval of evictor task to be run in milliseconds, or evict incoming rows * in case both start and frequency are specified as zero. * * @param criteria * an {@link EvictionCriteria} to be used for eviction for HDFS * persistent regions * @param start * the start time at which periodic evictor task should be first * fired to apply the provided {@link EvictionCriteria}; if this is * zero then current time is used for the first invocation of evictor * @param interval * the periodic frequency at which to run the evictor task after the * initial start; if this is if both start and frequency are zero * then {@link EvictionCriteria} is applied on incoming insert/update * to determine whether it is to be retained */ public RegionFactory<K, V> setCustomEvictionAttributes( EvictionCriteria<K, V> criteria, long start, long interval) { this.attrsFactory.setCustomEvictionAttributes(criteria, start, interval); return this; }
/** * Set custom {@link EvictionCriteria} for the region with start time and * interval of evictor task to be run in milliseconds, or evict incoming rows * in case both start and frequency are specified as zero. * * @param criteria * an {@link EvictionCriteria} to be used for eviction for HDFS * persistent regions * @param start * the start time at which periodic evictor task should be first * fired to apply the provided {@link EvictionCriteria}; if this is * zero then current time is used for the first invocation of evictor * @param interval * the periodic frequency at which to run the evictor task after the * initial start; if this is if both start and frequency are zero * then {@link EvictionCriteria} is applied on incoming insert/update * to determine whether it is to be retained */ public RegionFactory<K, V> setCustomEvictionAttributes( EvictionCriteria<K, V> criteria, long start, long interval) { this.attrsFactory.setCustomEvictionAttributes(criteria, start, interval); return this; }
afact.setCustomEvictionAttributes(new GfxdEvictionCriteria(predNode, statementSQLText, leftParenToken.endOffset + 1, rightParenToken.beginOffset), startMillis, intervalMillis);
afact.setCustomEvictionAttributes(new GfxdEvictionCriteria(predNode, statementSQLText, leftParenToken.endOffset + 1, rightParenToken.beginOffset), startMillis, intervalMillis);
afact.setCustomEvictionAttributes(new GfxdEvictionCriteria(predNode, statementSQLText, leftParenToken.endOffset + 1, rightParenToken.beginOffset), startMillis, intervalMillis);
public void run2() { final AttributesFactory factory = new AttributesFactory(); factory.setEnableOffHeapMemory(false); factory.setPartitionAttributes(new PartitionAttributesFactory() .setRedundantCopies(redundantCopies).create()); factory.setDiskSynchronous(true); factory.setCustomEvictionAttributes(criteria, start, interval); final PartitionedRegion pr = (PartitionedRegion)getCache().createRegionFactory(factory.create()).create(name); assertNotNull(pr); } };
afact.setCustomEvictionAttributes(ec, 0L, 0L);
afact.setCustomEvictionAttributes(ec, 0L, 0L);
afact.setCustomEvictionAttributes(ec, 0L, 0L);