|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.MailSessionCache
public final class MailSessionCache
MailSessionCache - The main session-bound cache for mail module.
| Method Summary | ||
|---|---|---|
void |
clear()
Clears this cache. |
|
boolean |
containsParameter(int accountId,
java.lang.String parameterName)
Checks if a parameter is associated with given account ID and parameter name. |
|
static void |
dropInstance(com.openexchange.session.Session session)
Drops the session-bound mail cache. |
|
static MailSessionCache |
getInstance(com.openexchange.session.Session session)
Gets the session-bound mail cache. |
|
|
getParameter(int accountId,
java.lang.String parameterName)
Gets the parameter associated with given account ID and parameter name. |
|
void |
putParameter(int accountId,
java.lang.String parameterName,
java.lang.Object parameterValue)
Puts parameter into this cache. |
|
java.lang.Object |
putParameterIfAbsent(int accountId,
java.lang.String parameterName,
java.lang.Object parameterValue)
(Atomically) Puts parameter into this cache only if no other parameter is associated with given account ID and parameter name. |
|
void |
removeAccountParameters(int accountId)
Removes the parameters associated with given account ID |
|
java.lang.Object |
removeParameter(int accountId,
java.lang.String parameterName)
Removes the parameter associated with given account ID and parameter name. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MailSessionCache getInstance(com.openexchange.session.Session session)
session - The session whose mail cache shall be returned
public static void dropInstance(com.openexchange.session.Session session)
session - The session whose mail cache shall be dropped
public <T> T getParameter(int accountId,
java.lang.String parameterName)
accountId - The account IDparameterName - The parameter nameclazz - The parameter value's class
null
public boolean containsParameter(int accountId,
java.lang.String parameterName)
accountId - The account IDparameterName - The parameter name
true if a parameter is associated with given account ID and parameter name; otherwise false
public void putParameter(int accountId,
java.lang.String parameterName,
java.lang.Object parameterValue)
null value removes the parameter.
accountId - The account IDparameterName - The parameter nameparameterValue - The parameter value
public java.lang.Object putParameterIfAbsent(int accountId,
java.lang.String parameterName,
java.lang.Object parameterValue)
null value removes the parameter.
accountId - The account IDparameterName - The parameter nameparameterValue - The parameter value
public java.lang.Object removeParameter(int accountId,
java.lang.String parameterName)
accountId - The account IDparameterName - The parameter name
nullpublic void removeAccountParameters(int accountId)
accountId - The account IDpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||