Package org.apache.chemistry.opencmis.client.runtime.cache

Examples of org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl$CacheItem


    private CmisObject createCmisObject(final String id) {
        return new CmisObjectMock(id);
    }

    private Cache createCache(int cacheSize, int ttl) {
        Cache cache = new CacheImpl();

        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put(SessionParameter.CACHE_SIZE_OBJECTS, "" + cacheSize);
        parameters.put(SessionParameter.CACHE_TTL_OBJECTS, "" + ttl);

        cache.initialize(null, parameters);

        return cache;
    }
View Full Code Here


    private static CmisObject createCmisObject(final String id) {
        return new CmisObjectMock(id);
    }

    private static Cache createCache(int cacheSize, int ttl) {
        Cache cache = new CacheImpl();

        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put(SessionParameter.CACHE_SIZE_OBJECTS, "" + cacheSize);
        parameters.put(SessionParameter.CACHE_TTL_OBJECTS, "" + ttl);

        cache.initialize(null, parameters);

        return cache;
    }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl$CacheItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.