Package org.gearman.worker
Class DefaultGearmanFunctionFactory
- java.lang.Object
-
- org.gearman.worker.DefaultGearmanFunctionFactory
-
- All Implemented Interfaces:
GearmanFunctionFactory
public class DefaultGearmanFunctionFactory extends Object implements GearmanFunctionFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultGearmanFunctionFactory(String className)
DefaultGearmanFunctionFactory(String functionName, String className)
-
Method Summary
All Methods Instance Methods Concrete 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
public String getFunctionName()
Description copied from interface:GearmanFunctionFactory
Returns the name of the function for which this factory createsGearmanFunction
objects.- Specified by:
getFunctionName
in interfaceGearmanFunctionFactory
- Returns:
- name of the function for which this factory creates GearmanFunction objects
-
getFunction
public GearmanFunction getFunction()
Description copied from interface:GearmanFunctionFactory
Factory method for generating aGearmanFunction
object. Returns a GearmanFunction object that a Worker will call with a Job.- Specified by:
getFunction
in interfaceGearmanFunctionFactory
- Returns:
- GearmanFunction instance
-
-