Class QueueCleanupDLQJobFactory
- java.lang.Object
-
- com.swiftmq.impl.queue.standard.jobs.QueueCleanupDLQJobFactory
-
- All Implemented Interfaces:
JobFactory
public class QueueCleanupDLQJobFactory extends java.lang.Object implements JobFactory
-
-
Constructor Summary
Constructors Constructor Description QueueCleanupDLQJobFactory(SwiftletContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished(Job job, JobException e)
Marks a Job instance as finished.java.lang.String
getDescription()
Returns a short description of the JobFactory, e.g.Job
getJobInstance()
Returns a Job instance.JobParameter
getJobParameter(java.lang.String s)
Returns a JobParameter with the given parameter name.java.util.Map
getJobParameters()
Returns a Map of JobParameters, keyed by the parameter name or null if no parameter is defined.java.lang.String
getName()
Returns the name of the JobFactory, e.g.java.lang.String
toString()
-
-
-
Constructor Detail
-
QueueCleanupDLQJobFactory
public QueueCleanupDLQJobFactory(SwiftletContext ctx)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:JobFactory
Returns the name of the JobFactory, e.g. 'Queue Mover'- Specified by:
getName
in interfaceJobFactory
- Returns:
- Name
-
getDescription
public java.lang.String getDescription()
Description copied from interface:JobFactory
Returns a short description of the JobFactory, e.g. 'Moves the content of a Queue'- Specified by:
getDescription
in interfaceJobFactory
- Returns:
- description
-
getJobParameters
public java.util.Map getJobParameters()
Description copied from interface:JobFactory
Returns a Map of JobParameters, keyed by the parameter name or null if no parameter is defined.- Specified by:
getJobParameters
in interfaceJobFactory
- Returns:
- Map of JobParameters
-
getJobParameter
public JobParameter getJobParameter(java.lang.String s)
Description copied from interface:JobFactory
Returns a JobParameter with the given parameter name.- Specified by:
getJobParameter
in interfaceJobFactory
- Parameters:
s
- Parameter name- Returns:
- JobParameter or null
-
getJobInstance
public Job getJobInstance()
Description copied from interface:JobFactory
Returns a Job instance. This is equal to a check-out of a pool.- Specified by:
getJobInstance
in interfaceJobFactory
- Returns:
- Job
-
finished
public void finished(Job job, JobException e)
Description copied from interface:JobFactory
Marks a Job instance as finished. Called after the Job has been terminated. This is equal to a check-in into a pool.- Specified by:
finished
in interfaceJobFactory
- Parameters:
job
- Job instancee
- JobException thrown by the Job instance
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-