|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.module.community.NodeBreaker
NodeBreaker stores temporary nodes with an expiration time.
After this has expired the node is removed.
| Constructor Summary | |
NodeBreaker(long checkInterval,
TemporaryNodeManager tmpNodeManager)
Deprecated. Creates a new node breaker. |
|
| Method Summary | |
void |
add(java.lang.String id,
long expireTime)
Deprecated. Adds a node to be watched. |
void |
remove(java.lang.String id)
Deprecated. Removes a node. |
void |
run()
Deprecated. Runs the thread that checks for expired relations. |
void |
stop()
Deprecated. Stop the breaker. |
boolean |
update(java.lang.String id,
long expireTime)
Deprecated. Updates a node to be watched, preventing it from being removed prematurely. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeBreaker(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 nodeexpireTime - expiration time of the node
public boolean update(java.lang.String id,
long expireTime)
id - the id of the referred nodeexpireTime - the new expiration time of the nodepublic void remove(java.lang.String id)
id - the id of the referred nodepublic void stop()
public void run()
run in interface java.lang.Runnable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||