org.apache.chemistry.opencmis.client.runtime.cache
Interface Cache

All Superinterfaces:
Serializable
All Known Implementing Classes:
CacheImpl, NoCacheImpl

public interface Cache
extends Serializable

Implements a session cache providing following capabilities:


Method Summary
 void clear()
           
 boolean containsId(String objectId, String cacheKey)
           
 boolean containsPath(String path, String cacheKey)
           
 CmisObject getById(String objectId, String cacheKey)
           
 CmisObject getByPath(String path, String cacheKey)
           
 int getCacheSize()
           
 void initialize(Session session, Map<String,String> parameters)
           
 void put(CmisObject object, String cacheKey)
           
 void putPath(String path, CmisObject object, String cacheKey)
           
 void remove(String objectId)
           
 

Method Detail

initialize

void initialize(Session session,
                Map<String,String> parameters)

containsId

boolean containsId(String objectId,
                   String cacheKey)

containsPath

boolean containsPath(String path,
                     String cacheKey)

put

void put(CmisObject object,
         String cacheKey)

putPath

void putPath(String path,
             CmisObject object,
             String cacheKey)

getById

CmisObject getById(String objectId,
                   String cacheKey)

getByPath

CmisObject getByPath(String path,
                     String cacheKey)

remove

void remove(String objectId)

clear

void clear()

getCacheSize

int getCacheSize()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.