Package org.gearman.worker
Interface GearmanFunctionFactory
-
- All Known Implementing Classes:
DefaultGearmanFunctionFactory
public interface GearmanFunctionFactory
Factory for producingGearmanFunction
objects. A factory can be registered with aGearmanWorker
to allow control over the JobFunction instance that the Worker will call to performGearmanJob
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GearmanFunction
getFunction()
Factory method for generating aGearmanFunction
object.String
getFunctionName()
Returns the name of the function for which this factory createsGearmanFunction
objects.
-
-
-
Method Detail
-
getFunctionName
String getFunctionName()
Returns the name of the function for which this factory createsGearmanFunction
objects.- Returns:
- name of the function for which this factory creates GearmanFunction objects
-
getFunction
GearmanFunction getFunction()
Factory method for generating aGearmanFunction
object. Returns a GearmanFunction object that a Worker will call with a Job.- Returns:
- GearmanFunction instance
-
-