com.alachisoft.ncache.client.internal.caching.CacheItemRemovedReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ncache-professional-client Show documentation
Show all versions of ncache-professional-client Show documentation
NCache Professional client for java.
/*
* 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