org.tinygroup.threadgroup
Class AbstractProcessor

java.lang.Object
  extended by org.tinygroup.threadgroup.AbstractProcessor
All Implemented Interfaces:
Runnable, Processor

public abstract class AbstractProcessor
extends Object
implements Processor

抽象处理器

Author:
luoguo

Constructor Summary
AbstractProcessor(String name)
           
 
Method Summary
protected abstract  void action()
           
 String getName()
          返回名称
 void run()
           
 void setExceptionCallBack(ExceptionCallBack exceptionCallBack)
           
 void setMultiThreadProcess(MultiThreadProcessor multiThreadProcess)
          设置多线程处理器
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProcessor

public AbstractProcessor(String name)
Method Detail

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.