com.alisoft.xplatform.asf.cache.memcached
类 ClusterProcessor

java.lang.Object
  继承者 java.lang.Thread
      继承者 com.alisoft.xplatform.asf.cache.memcached.ClusterProcessor
所有已实现的接口:
java.lang.Runnable

public class ClusterProcessor
extends java.lang.Thread

为了提高性能,对于Cluster内的数据作异步同步

作者:
wenchu.cenwc

嵌套类摘要
 
从类 java.lang.Thread 继承的嵌套类/接口
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
字段摘要
 
从类 java.lang.Thread 继承的字段
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
构造方法摘要
ClusterProcessor(java.util.concurrent.LinkedBlockingQueue<java.lang.Object[]> queue, MemCachedClientHelper helper)
           
 
方法摘要
 boolean ansyCommandProcess(java.lang.Object[] commands)
          异步存储请求处理
 void commandProcess(java.lang.Object[] commands)
          队列请求命令处理
 void run()
           
 void stopProcess()
           
 
从类 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 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ClusterProcessor

public ClusterProcessor(java.util.concurrent.LinkedBlockingQueue<java.lang.Object[]> queue,
                        MemCachedClientHelper helper)
方法详细信息

run

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

stopProcess

public void stopProcess()

ansyCommandProcess

public boolean ansyCommandProcess(java.lang.Object[] commands)
异步存储请求处理

参数:
commands -
返回:

commandProcess

public void commandProcess(java.lang.Object[] commands)
队列请求命令处理

参数:
commands -


Copyright © 2009 . All Rights Reserved.