org.tinygroup.threadgroup
Class AbstractProcessor
java.lang.Object
org.tinygroup.threadgroup.AbstractProcessor
- All Implemented Interfaces:
- Runnable, Processor
public abstract class AbstractProcessor
- extends Object
- implements Processor
抽象处理器
- Author:
- luoguo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProcessor
public AbstractProcessor(String name)
action
protected abstract void action()
throws Exception
- Throws:
Exception
setExceptionCallBack
public void setExceptionCallBack(ExceptionCallBack exceptionCallBack)
- Specified by:
setExceptionCallBack in interface Processor
getName
public String getName()
- Description copied from interface:
Processor
- 返回名称
- Specified by:
getName in interface Processor
- Returns:
run
public void run()
- Specified by:
run in interface Runnable
setMultiThreadProcess
public void setMultiThreadProcess(MultiThreadProcessor multiThreadProcess)
- Description copied from interface:
Processor
- 设置多线程处理器
- Specified by:
setMultiThreadProcess in interface Processor
Copyright © 2006–2015 TinyGroup. All rights reserved.