|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.exoplatform.ws.security.oauth.impl.OAuthTokenCleanerImpl
public final class OAuthTokenCleanerImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static long |
DEFAULT_TIMEOUT
Default cleaner timeout. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
OAuthTokenCleanerImpl(org.exoplatform.container.xml.InitParams params)
Constructs OauthTokenCleaner. |
|
| Method Summary | |
|---|---|
void |
clean()
Looking for expired tokens and remove it. |
void |
run()
|
void |
setTokens(Set<net.oauth.OAuthAccessor> tokens)
By this method must be passed collections of accessor which must be under control. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_TIMEOUT
| Constructor Detail |
|---|
public OAuthTokenCleanerImpl(org.exoplatform.container.xml.InitParams params)
params - initialized parameters.| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Threadpublic void clean()
clean in interface OAuthTokenCleanerpublic void setTokens(Set<net.oauth.OAuthAccessor> tokens)
setTokens in interface OAuthTokenCleanertokens - the Collection of tokens which must be under control.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||