Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class DbStatusLevelManager.LeaderQueryCacheUpdateTask

java.lang.Object
  extended by com.jivesoftware.forum.database.DbStatusLevelManager.LeaderQueryCacheUpdateTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
DbStatusLevelManager

public static class DbStatusLevelManager.LeaderQueryCacheUpdateTask
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
DbStatusLevelManager.LeaderQueryCacheUpdateTask(DbStatusLevelManager.LeaderQueryCache.Entry entry)
          This thread has to take the map entry because it needs to place the update flag to false after it puts the value in the cache.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbStatusLevelManager.LeaderQueryCacheUpdateTask

public DbStatusLevelManager.LeaderQueryCacheUpdateTask(DbStatusLevelManager.LeaderQueryCache.Entry entry)
This thread has to take the map entry because it needs to place the update flag to false after it puts the value in the cache.

We have to do it this way because put method of the cache calls the getEntry method. This call happens after the setValue method of Entry is called, so it will spawn of another LeaderQueryCacheUpdateTask

Parameters:
entry - the cache entry
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.