Java 类org.jivesoftware.smackx.entitycaps.cache.EntityCapsPersistentCache 实例源码

项目:androidPN-client.    文件:EntityCapsManager.java   
/**
 * Set the persistent cache implementation
 * 
 * @param cache
 * @throws IOException
 */
public static void setPersistentCache(EntityCapsPersistentCache cache) throws IOException {
    if (persistentCache != null)
        throw new IllegalStateException("Entity Caps Persistent Cache was already set");
    persistentCache = cache;
    persistentCache.replay();
}
项目:java-bells    文件:EntityCapsManager.java   
/**
 * Set the persistent cache implementation
 * 
 * @param cache
 * @throws IOException
 */
public static void setPersistentCache(EntityCapsPersistentCache cache) throws IOException {
    if (persistentCache != null)
        throw new IllegalStateException("Entity Caps Persistent Cache was already set");
    persistentCache = cache;
    persistentCache.replay();
}
项目:asmack-mini    文件:EntityCapsManager.java   
/**
 * Set the persistent cache implementation
 * 
 * @param cache
 * @throws IOException
 */
public static void setPersistentCache(EntityCapsPersistentCache cache) throws IOException {
    if (persistentCache != null)
        throw new IllegalStateException("Entity Caps Persistent Cache was already set");
    persistentCache = cache;
    persistentCache.replay();
}