Package org.snpeff.akka
Class Worker<TI,TO>
- java.lang.Object
-
- org.snpeff.akka.ConcurrentActor
-
- org.snpeff.akka.Worker<TI,TO>
-
- All Implemented Interfaces:
java.util.concurrent.Callable<Result<TO>>
- Direct Known Subclasses:
WorkerVcf
,WorkerVcfStr
public class Worker<TI,TO> extends ConcurrentActor implements java.util.concurrent.Callable<Result<TO>>
Worker: Performs a simple work and get the data back TI: Data type in (input for this calculation) TO: Data type out (result form the calculation)- Author:
- pablocingolani
-
-
Constructor Summary
Constructors Constructor Description Worker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<TO>
calculate(Work<TI> work)
Perform some useful actionTO
calculate(TI data)
Perform main calculation You must override this method to perform whatever calculation you want to implementResult<TO>
call()
static int
getId()
void
setMessage(java.lang.Object pMessage)
-