Package org.gearman.example
Class DigestFunction
- java.lang.Object
-
- org.gearman.worker.AbstractGearmanFunction
-
- org.gearman.example.DigestFunction
-
- All Implemented Interfaces:
Callable<GearmanJobResult>
,GearmanFunction
public class DigestFunction extends AbstractGearmanFunction
The data passed to DigestFunction should contain two parameters separated by a null byte.- name of a digest algorithm implemented by
MessageDigest
- data to digest
-
-
Constructor Summary
Constructors Constructor Description DigestFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GearmanJobResult
executeFunction()
-
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
-
-