KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > cache > Cache


1 package org.jahia.services.cache;
2
3 public interface Cache
4 {
5   public boolean containsKey (final Object JavaDoc entryKey);
6   public void flush ();
7   public void flush(boolean propagate);
8   public Object JavaDoc get (Object JavaDoc entryKey);
9   public String JavaDoc getName ();
10   public Object JavaDoc[] keys ();
11   public void put (Object JavaDoc entryKey, Object JavaDoc entryObj);
12   public void registerListener (CacheListener listener);
13   public void remove (Object JavaDoc entryKey);
14   public boolean isEmpty ();
15   public int size ();
16   public CacheEntry getCacheEntry (Object JavaDoc entryKey);
17   public void putCacheEntry (Object JavaDoc entryKey, CacheEntry entry, boolean propagate);
18   public int getCacheLimit ();
19   public void setCacheLimit (int limit);
20   
21   public double getCacheEfficiency ();
22   public long getSuccessHits ();
23   public long getTotalHits ();
24 }
25
Popular Tags