Class LoggingMiddleware
- java.lang.Object
-
- com.github.sonus21.rqueue.core.middleware.LoggingMiddleware
-
- All Implemented Interfaces:
Middleware
public class LoggingMiddleware extends java.lang.Object implements Middleware
A simple logging middleware that logs queue and job id for visibility
-
-
Constructor Summary
Constructors Constructor Description LoggingMiddleware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Job job, java.util.concurrent.Callable<java.lang.Void> next)
Middleware handles that would be called
-
-
-
Method Detail
-
handle
public void handle(Job job, java.util.concurrent.Callable<java.lang.Void> next) throws java.lang.Exception
Description copied from interface:Middleware
Middleware handles that would be called- Specified by:
handle
in interfaceMiddleware
- Parameters:
job
- job objectnext
- next middleware in chain- Throws:
java.lang.Exception
- any exception
-
-