com.akala.dbcache.core
类 UpdateThread

java.lang.Object
  继承者 java.lang.Thread
      继承者 com.akala.dbcache.core.UpdateThread
所有已实现的接口:
java.lang.Runnable

public class UpdateThread
extends java.lang.Thread

免责声明:本代码所有权归作者所有,在保持源代码不被破坏以及所有人署名的基础上,任何组织或个人可自由无限使用,使用者需自行承担所有风险。

非即时更新数据库的Thread,压力特别大时可以把一些不影响排序的update放进来
定时间更新数据库,update是先把对象放入hashmap然后定时update...
比较实用于那种像帖子的点击次数的修改,没必要每次点击都修改数据库。

另请参见:
舍得网

嵌套类摘要
 
从类 java.lang.Thread 继承的嵌套类/接口
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
字段摘要
 
从类 java.lang.Thread 继承的字段
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
构造方法摘要
UpdateThread(java.util.Map m)
           
 
方法摘要
 void run()
           
 
从类 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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

UpdateThread

public UpdateThread(java.util.Map m)
方法详细信息

run

public void run()
指定者:
接口 java.lang.Runnable 中的 run
覆盖:
java.lang.Thread 中的 run


Copyright © 2005-2008 shedewang.com Corp. All Rights Reserved.