Package org.apache.turbine.modules
Interface ScheduledJob
- All Superinterfaces:
Assembler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
All Scheduled jobs should implement this. The class that implements
ScheduledJob should contain the code that you actually want to
execute at a specific time. The name of this class is what you
register in the JobEntry.
- Version:
- $Id$
- Author:
- Dave Bryson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default size of the scheduler job cache if module caching is on.static final String
The key for the scheduler job cache size if module caching is on.static final String
Represents Scheduled Job Objectsstatic final String
Prefix for scheduler job related classes -
Method Summary
-
Field Details
-
PREFIX
Prefix for scheduler job related classes- See Also:
-
CACHE_SIZE_KEY
The key for the scheduler job cache size if module caching is on.- See Also:
-
CACHE_SIZE_DEFAULT
The default size of the scheduler job cache if module caching is on.- See Also:
-
NAME
Represents Scheduled Job Objects- See Also:
-
-
Method Details
-
run
Run the Jobentry from the scheduler queue.- Parameters:
job
- The job to run.- Throws:
Exception
- if something goes wrong
-