Java 类org.jivesoftware.smack.util.Cache 实例源码

项目:androidPN-client.    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the JID to nodeVer Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setJidCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) jidCaps).setMaxCacheSize(maxCacheSize);
}
项目:androidPN-client.    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the nodeVer to DiscoverInfo Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) caps).setMaxCacheSize(maxCacheSize);
}
项目:java-bells    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the JID to nodeVer Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setJidCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) jidCaps).setMaxCacheSize(maxCacheSize);
}
项目:java-bells    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the nodeVer to DiscoverInfo Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) caps).setMaxCacheSize(maxCacheSize);
}
项目:Beem    文件:MemoryAvatarCache.java   
/**
    * Create a MemoryAvatarCache.
    *
    * @param maxSize the maximum number of objects the cache will hold. -1 means the cache has no max size.
    * @param maxlifetime the maximum amount of time (in ms) objects can exist in cache before being deleted.
    *   -1 means objects never expire.
    */
   public MemoryAvatarCache(final int maxSize, final long maxlifetime) {
mCache = new Cache<String, byte[]>(maxSize, maxlifetime);
   }
项目:asmack-mini    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the JID to nodeVer Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setJidCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) jidCaps).setMaxCacheSize(maxCacheSize);
}
项目:asmack-mini    文件:EntityCapsManager.java   
/**
 * Sets the maximum Cache size for the nodeVer to DiscoverInfo Cache
 * 
 * @param maxCacheSize
 */
@SuppressWarnings("rawtypes")
public static void setCapsMaxCacheSize(int maxCacheSize) {
    ((Cache) caps).setMaxCacheSize(maxCacheSize);
}
项目:beem-fork-xmpp    文件:MemoryAvatarCache.java   
/**
    * Create a MemoryAvatarCache.
    *
    * @param maxSize the maximum number of objects the cache will hold. -1 means the cache has no max size.
    * @param maxlifetime the maximum amount of time (in ms) objects can exist in cache before being deleted.
    *   -1 means objects never expire.
    */
   public MemoryAvatarCache(final int maxSize, final long maxlifetime) {
mCache = new Cache<String, byte[]>(maxSize, maxlifetime);
   }