All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.client.internal.caching.CacheItemRemovedReason Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version

/*
 * CacheItemRemovedReason.java
 *
 * Created on August 29, 2006, 2:32 PM
 *
 * Copyright 2005 Alachisoft, Inc. All rights reserved.
 * ALACHISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.alachisoft.ncache.client.internal.caching;

/**
 * Specifies the reason an item was removed from the Cache.
 * 
 * This enumeration works in concert with the CacheItemRemovedCallback delegate to notify your applications
 * when and why an object was removed from the Cache.
 * 
* * @author Administrator * @version 1.0 */ public enum CacheItemRemovedReason { /** * The item is removed from the cache because a file or key dependency changed. */ DependencyChanged, /** * The item is removed from the cache because it expired. */ Expired, /** * The item is removed from the cache by a Cache.Remove method call or by an * Cache.Insert method call that specified the same key. */ Removed, /** * The item is removed from the cache because the system removed it to free memory. */ Underused, DependencyInvalid; public static CacheItemRemovedReason forValue(int value) { return values()[value]; } public int getValue() { return this.ordinal(); } } //~ Formatted by Jindent --- http://www.jindent.com




© 2015 - 2024 Weber Informatics LLC | Privacy Policy