Package org.gearman.common
Class GearmanTask
- java.lang.Object
-
- org.gearman.common.GearmanTask
-
- All Implemented Interfaces:
GearmanIOEventListener
public class GearmanTask extends Object implements GearmanIOEventListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GearmanTask.State
-
Constructor Summary
Constructors Constructor Description GearmanTask(GearmanPacket packet)
GearmanTask(GearmanServerResponseHandler handler, GearmanPacket packet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GearmanServerResponseHandler
getHandler()
GearmanPacket
getRequestPacket()
GearmanTask.State
getState()
void
handleGearmanIOEvent(GearmanPacket p)
The method to be called when an event has occurred.String
toString()
-
-
-
Constructor Detail
-
GearmanTask
public GearmanTask(GearmanPacket packet)
-
GearmanTask
public GearmanTask(GearmanServerResponseHandler handler, GearmanPacket packet)
-
-
Method Detail
-
handleGearmanIOEvent
public void handleGearmanIOEvent(GearmanPacket p) throws IllegalArgumentException
Description copied from interface:GearmanIOEventListener
The method to be called when an event has occurred.- Specified by:
handleGearmanIOEvent
in interfaceGearmanIOEventListener
- Parameters:
p
- The fired event.- Throws:
IllegalArgumentException
-
getRequestPacket
public GearmanPacket getRequestPacket()
-
getHandler
public GearmanServerResponseHandler getHandler()
-
getState
public GearmanTask.State getState()
-
-