Package com.github.sonus21.rqueue.core.middleware
package com.github.sonus21.rqueue.core.middleware
-
ClassDescriptionContext middleware allows us to set context for the running job, context could be any thing like putting user information for permission check, initiating some transaction.Lock middleware can be used for locking purpose Use cases:A simple logging middleware that logs queue and job id for visibilityMiddlewares are used in a chain, at the end of chain listener method is called.Permission middleware allows to check whether some permission is there for a given job,A profile middleware that measures the execution time of a job, a more sophisticated profiler middleware can report latency to New Relic, Datadog, or use Micrometer to report latency or any other data.This uses Redis as backend for locking, using SETNX a lock is acquired.A middleware extension that allows implementation to provide different types of delay in different case.