|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectjava.lang.Thread
com.akala.dbcache.core.UpdateThread
public class UpdateThread
免责声明:本代码所有权归作者所有,在保持源代码不被破坏以及所有人署名的基础上,任何组织或个人可自由无限使用,使用者需自行承担所有风险。
非即时更新数据库的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 |
| 构造方法详细信息 |
|---|
public UpdateThread(java.util.Map m)
| 方法详细信息 |
|---|
public void run()
java.lang.Runnable 中的 runjava.lang.Thread 中的 run
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||