The class is registered as a container service and contributed to stone.queue.handlers; the
QueueServiceProvider resolves it (with dependency injection). With a name, jobs of that
name are routed to the class's handle(payload, job) method. Without a name, the class carries
one or more @OnJob('...') methods, one job per method.
Type Parameters
TextendsClassType = ClassType
Parameters
Optionalname: string
The job name this class handles (omit when using @OnJob methods).
Class decorator: mark a class as a job handler.
The class is registered as a container service and contributed to
stone.queue.handlers; the QueueServiceProvider resolves it (with dependency injection). With aname, jobs of that name are routed to the class'shandle(payload, job)method. Without aname, the class carries one or more@OnJob('...')methods, one job per method.