private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { synchronized (this) { // See bug 31047 this.evictionAction = (EvictionAction) in.readObject(); this.helper = createLRUHelper(); } }
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { synchronized (this) { // See bug 31047 this.evictionAction = (EvictionAction) in.readObject(); this.helper = createLRUHelper(); } }
/** * Returns a copy of this LRU-based eviction controller. * This method is a artifact when capacity controllers * were used on a <code>Region</code> */ @Override public Object clone() throws CloneNotSupportedException { synchronized (this) { LRUAlgorithm clone = (LRUAlgorithm) super.clone(); clone.stats = null; synchronized (clone) { clone.helper = clone.createLRUHelper(); } return clone; } }
/** * Returns a copy of this LRU-based eviction controller. * This method is a artifact when capacity controllers * were used on a <code>Region</code> */ @Override public Object clone() throws CloneNotSupportedException { synchronized (this) { LRUAlgorithm clone = (LRUAlgorithm) super.clone(); clone.stats = null; synchronized (clone) { clone.helper = clone.createLRUHelper(); } return clone; } }
/** * Creates a new <code>LRUAlgorithm</code> with the given * {@linkplain EvictionAction eviction action}. */ protected LRUAlgorithm(EvictionAction evictionAction,Region region) { bucketRegion=(BucketRegion)(region instanceof BucketRegion ? region :null); setEvictionAction(evictionAction); this.helper = createLRUHelper(); }
/** * Creates a new <code>LRUAlgorithm</code> with the given * {@linkplain EvictionAction eviction action}. */ protected LRUAlgorithm(EvictionAction evictionAction,Region region) { bucketRegion=(BucketRegion)(region instanceof BucketRegion ? region :null); setEvictionAction(evictionAction); this.helper = createLRUHelper(); }