/** * Creates a persitent-to-disk store for the given cache, using the given disk path. * Heap and disk usage are not tracked by the returned store. * * @param cache cache that fronts this store * @return a fully initialized store */ public static DiskStore create(Cache cache) { return create(cache, new UnboundedPool(), new UnboundedPool()); }
/** * Creates a persitent-to-disk store for the given cache, using the given disk path. * Heap and disk usage are not tracked by the returned store. * * @param cache cache that fronts this store * @return a fully initialized store */ public static DiskStore create(Cache cache) { return create(cache, new UnboundedPool(), new UnboundedPool()); }
/** * Creates a persitent-to-disk store for the given cache, using the given * disk path. Heap and disk usage are not tracked by the returned store. * * @param cache cache that fronts this store * @param diskStorePath disk path to store data in * @return a fully initialized store */ public static Store create( Ehcache cache, String diskStorePath ) { return create( cache, diskStorePath, new UnboundedPool(), new UnboundedPool() ); }
/** * Creates a persitent-to-disk store for the given cache, using the given disk path. * Heap and disk usage are not tracked by the returned store. * * @param cache cache that fronts this store * @return a fully initialized store */ public static DiskStore create(Cache cache) { return create(cache, new UnboundedPool(), new UnboundedPool()); }
/** * Creates a persitent-to-disk store for the given cache, using the given disk path. * Heap and disk usage are not tracked by the returned store. * * @param cache cache that fronts this store * @return a fully initialized store */ public static DiskStore create(Cache cache) { return create(cache, new UnboundedPool(), new UnboundedPool()); }
/** * <b>do not use directly as can change</b> * @param manager * @return */ public static Pool<PoolableStore> getOffHeapPool( CacheManager manager ) { Pool<PoolableStore> pool; synchronized ( OFFHEAP_POOLS ) { pool = OFFHEAP_POOLS.get( manager ); if ( pool == null ) { pool = new UnboundedPool(); OFFHEAP_POOLS.put( manager, pool ); } } return pool; }
// on-heap pool configuration Pool onHeapPool; if (configuration.getMaxBytesLocalHeap() > 0) { PoolEvictor evictor = new FromLargestCachePoolEvictor(); SizeOfEngine sizeOfEngine = cacheManager.createSizeOfEngine(this); onHeapPool = new BoundedPool(configuration.getMaxBytesLocalHeap(), evictor, sizeOfEngine); } else if (getCacheManager() != null && getCacheManager().getConfiguration().isMaxBytesLocalHeapSet()) { onHeapPool = getCacheManager().getOnHeapPool(); } else { onHeapPool = new UnboundedPool(); }
onHeapPool = getCacheManager().getOnHeapPool(); } else { onHeapPool = new UnboundedPool(); onDiskPool = getCacheManager().getOnDiskPool(); } else { onDiskPool = new UnboundedPool();
onHeapPool = getCacheManager().getOnHeapPool(); } else { onHeapPool = new UnboundedPool(); onDiskPool = getCacheManager().getOnDiskPool(); } else { onDiskPool = new UnboundedPool();
onHeapPool = getCacheManager().getOnHeapPool(); } else { onHeapPool = new UnboundedPool(); onDiskPool = getCacheManager().getOnDiskPool(); } else { onDiskPool = new UnboundedPool();
onHeapPool = getCacheManager().getOnHeapPool(); } else { onHeapPool = new UnboundedPool(); onDiskPool = getCacheManager().getOnDiskPool(); } else { onDiskPool = new UnboundedPool();