|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.cache.SessionMailCache
public final class SessionMailCache
SessionMailCache - Several cacheable data bound to a user session.
| Method Summary | ||
|---|---|---|
void |
clear()
Clears all entries contained in cache. |
|
|
get(SessionMailCacheEntry<V> entry)
Gets the entry acquired through SessionMailCacheEntry.getKey(). |
|
static SessionMailCache |
getInstance(com.openexchange.session.Session session,
int accountId)
Gets the session-bound mail cache. |
|
void |
put(SessionMailCacheEntry<?> entry)
Puts specified entry into cache if SessionMailCacheEntry.getValue() is not null. |
|
|
remove(SessionMailCacheEntry<V> entry)
Removes the entry acquired through SessionMailCacheEntry.getKey() . |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SessionMailCache getInstance(com.openexchange.session.Session session,
int accountId)
session - The session whose mail cache shall be returnedaccountId - The account ID
public void put(SessionMailCacheEntry<?> entry)
entry into cache if SessionMailCacheEntry.getValue() is not null.
SessionMailCacheEntry.getKey() is used as key and SessionMailCacheEntry.getValue() as value.
entry - The mail cache entrypublic <V> void get(SessionMailCacheEntry<V> entry)
SessionMailCacheEntry.getKey(). If present it's applied to entry via
SessionMailCacheEntry.setValue(Object).
V - The cache entry's typeentry - The mail cache entrypublic <V> void remove(SessionMailCacheEntry<V> entry)
SessionMailCacheEntry.getKey() . If present it's applied to entry via
SessionMailCacheEntry.setValue(Object).
V - The cache entry's typeentry - The mail cache entrypublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||