MAKS\AmqpAgent\Worker\WorkerFacilitationInterface
An interface defining the simplest API to operate a worker.
Synopsis
interface WorkerFacilitationInterface
{
}
}
Methods
public
- prepare() — Executes all essential methods the worker needs before running its prime method (publish/consume).
- work() — A function that takes the entire overhead of running a worker and wraps it in one single method with a possibility to change only the prime parameter of the worker (messages/callback).