Package org.gearman.tests.functions
Class LongRunningFunction
- java.lang.Object
-
- org.gearman.worker.AbstractGearmanFunction
-
- org.gearman.tests.functions.LongRunningFunction
-
- All Implemented Interfaces:
Callable<GearmanJobResult>
,GearmanFunction
public class LongRunningFunction extends AbstractGearmanFunction
-
-
Constructor Summary
Constructors Constructor Description LongRunningFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GearmanJobResult
executeFunction()
void
isDone()
boolean
isRunning()
void
reset()
-
Methods inherited from class org.gearman.worker.AbstractGearmanFunction
call, fireEvent, getJobHandle, getName, getUniqueId, registerEventListener, sendData, sendException, sendStatus, sendWarning, setData, setJobHandle, setUniqueId
-
-
-
-
Method Detail
-
executeFunction
public GearmanJobResult executeFunction()
- Specified by:
executeFunction
in classAbstractGearmanFunction
-
reset
public void reset()
-
isDone
public void isDone()
-
isRunning
public boolean isRunning()
-
-