|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.mmbase.module.community.RelationBreaker
RelationBreaker stores relation numbers with an expiretime. After the expiretime has expired the relation is removed. Unfortunately, this class doesn't work. See docs for more info.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RelationBreaker(MMBase mmb,
long checkInterval,
TemporaryNodeManager tmpNodeManager)
Deprecated. Creates a new relation breaker. |
|
| Method Summary | |
void |
add(java.lang.String id,
long expireTime)
Deprecated. Adds a relation to be watched. |
void |
remove(org.mmbase.module.community.RelationHolder relationHolder,
int i)
Deprecated. Removes a relation. |
void |
remove(java.lang.String id)
Deprecated. Removes a relation. |
void |
run()
Deprecated. Runs the thread that checks for expired relations. |
boolean |
update(java.lang.String id,
long expireTime)
Deprecated. Updates a relation to be watched, preventing it from being removed prematurely. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Constructor Detail |
public RelationBreaker(MMBase mmb,
long checkInterval,
TemporaryNodeManager tmpNodeManager)
mmb - reference to MMBasecheckinterval - the interval at which the relation breaker checks for expired relationstmpNodeManager - the temporary node manager that holds the relations.| Method Detail |
public void add(java.lang.String id,
long expireTime)
id - the id of the referred relationexpireTime - expiration time of the relation
public boolean update(java.lang.String id,
long expireTime)
id - the id of the referred relationexpireTime - the new expiration time of the relationpublic void remove(java.lang.String id)
id - the id of the referred relation
public void remove(org.mmbase.module.community.RelationHolder relationHolder,
int i)
relationHolder - the RelationHolder of the referred relationi - index of the holder in the internal listpublic void run()
run in class java.lang.Thread
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||