public class DisruptorTaskQueue<T> extends Object implements ITaskQueue<T>
| 构造器和说明 |
|---|
DisruptorTaskQueue(String threadName) |
DisruptorTaskQueue(String threadName,
int bufferSize)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCommand(T command) |
ITaskQueue<T> |
exception(Proc3<org.slingerxv.limitart.taskqueue.DisruptorTaskQueue.DisruptorTaskQueueEvent,Throwable,Long> exception) |
String |
getThreadName() |
ITaskQueue<T> |
handle(Proc1<T> handle) |
ITaskQueue<T> |
intercept(Test1<T> intercept) |
void |
startServer() |
void |
stopServer() |
public DisruptorTaskQueue(String threadName)
public DisruptorTaskQueue(String threadName, int bufferSize)
threadName - bufferSize - 指定RingBuffer的大小handler - public ITaskQueue<T> intercept(Test1<T> intercept)
public ITaskQueue<T> handle(Proc1<T> handle)
public ITaskQueue<T> exception(Proc3<org.slingerxv.limitart.taskqueue.DisruptorTaskQueue.DisruptorTaskQueueEvent,Throwable,Long> exception)
public void startServer()
startServer 在接口中 IServerpublic void stopServer()
stopServer 在接口中 IServerpublic void addCommand(T command) throws TaskQueueException
addCommand 在接口中 ITaskQueue<T>TaskQueueExceptionpublic String getThreadName()
getThreadName 在接口中 ITaskQueue<T>Copyright © 2017. All rights reserved.