Interface ManagedScheduledJob
-
- All Superinterfaces:
ScheduledJob
- All Known Implementing Classes:
AbstractManagedScheduledJob
,ManagedScheduledCronJob
,ManagedScheduledSimpleJob
public interface ManagedScheduledJob extends ScheduledJob
Encapsulates the static configuration of a managed scheduled job. Implementations should be immutable.- Since:
- 5.10
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
canDisable()
boolean
canRunAdhoc()
default boolean
disabledByDefault()
com.atlassian.scheduler.config.JobId
getJobId()
long
getLockWaitTime()
Optional<TimeoutPolicy>
getTimeoutPolicy()
static boolean
isCronJob(ManagedScheduledJob job)
Utility to determine if a managed job is a cron job or not.boolean
isEditable()
boolean
isKeepingHistory()
boolean
isLocalJob()
-
Methods inherited from interface com.atlassian.confluence.schedule.ScheduledJob
getJobConfig, getJobRunner, isClusteredOnly
-
-
-
-
Method Detail
-
getJobId
com.atlassian.scheduler.config.JobId getJobId()
-
isEditable
boolean isEditable()
-
isKeepingHistory
boolean isKeepingHistory()
-
canRunAdhoc
boolean canRunAdhoc()
-
canDisable
boolean canDisable()
-
getLockWaitTime
long getLockWaitTime()
-
isLocalJob
boolean isLocalJob()
-
getTimeoutPolicy
Optional<TimeoutPolicy> getTimeoutPolicy()
-
isCronJob
static boolean isCronJob(ManagedScheduledJob job)
Utility to determine if a managed job is a cron job or not.
-
disabledByDefault
default boolean disabledByDefault()
-
-