Interface TaskRequest
-
- All Superinterfaces:
CarrotTask,Serializable
public interface TaskRequest extends CarrotTask
Classes implementing this interface can be used to enqueue a Carrot Task and will be used as the argument for the actualTaskRequestHandler. Make sure that yourTaskRequestclass implementation can be serialized by your chosen Json library. You will need a default no-arg constructor for deserialization.While processing, Carrot will lookup the actual
TaskRequestHandlerin the IoC container or create a new instance using the default constructor. Next, it will call therunmethod and pass it TaskRequest as argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<? extends TaskRequestHandler>getTaskRequestHandler()
-
-
-
Method Detail
-
getTaskRequestHandler
Class<? extends TaskRequestHandler> getTaskRequestHandler()
-
-