Package org.gearman.worker
Class EmptyNameFunction
- java.lang.Object
-
- org.gearman.worker.EmptyNameFunction
-
- All Implemented Interfaces:
Callable<GearmanJobResult>
,GearmanFunction
public class EmptyNameFunction extends Object implements GearmanFunction
-
-
Constructor Summary
Constructors Constructor Description EmptyNameFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GearmanJobResult
call()
void
fireEvent(GearmanPacket event)
byte[]
getJobHandle()
String
getName()
byte[]
getUniqueId()
void
registerEventListener(GearmanIOEventListener listener)
void
setData(Object data)
void
setJobHandle(byte[] handle)
void
setUniqueId(byte[] unique)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceGearmanFunction
-
setData
public void setData(Object data)
- Specified by:
setData
in interfaceGearmanFunction
-
setJobHandle
public void setJobHandle(byte[] handle) throws IllegalArgumentException
- Specified by:
setJobHandle
in interfaceGearmanFunction
- Throws:
IllegalArgumentException
-
getJobHandle
public byte[] getJobHandle()
- Specified by:
getJobHandle
in interfaceGearmanFunction
-
registerEventListener
public void registerEventListener(GearmanIOEventListener listener) throws IllegalArgumentException
- Specified by:
registerEventListener
in interfaceGearmanFunction
- Throws:
IllegalArgumentException
-
fireEvent
public void fireEvent(GearmanPacket event)
- Specified by:
fireEvent
in interfaceGearmanFunction
-
call
public GearmanJobResult call() throws Exception
- Specified by:
call
in interfaceCallable<GearmanJobResult>
- Throws:
Exception
-
setUniqueId
public void setUniqueId(byte[] unique)
- Specified by:
setUniqueId
in interfaceGearmanFunction
-
getUniqueId
public byte[] getUniqueId()
- Specified by:
getUniqueId
in interfaceGearmanFunction
-
-