Class AsyncEmbeddedCronJob
- java.lang.Object
-
- org.apache.felix.hc.core.impl.scheduling.AsyncJob
-
- org.apache.felix.hc.core.impl.scheduling.cron.embedded.AsyncEmbeddedCronJob
-
public final class AsyncEmbeddedCronJob extends AsyncJob
Runs health checks/monitors that are configured with a cron expression for asynchronous execution.
-
-
Constructor Summary
Constructors Constructor Description AsyncEmbeddedCronJob(Runnable runnable, EmbeddedCronSchedulerProvider embeddedCronSchedulerProvider, String id, String cronExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndExecute(ExecutorService tasksExecutor)
String
getId()
long
getLastExecutingTime()
long
getNextExecutingTime()
boolean
isExecuting()
boolean
schedule()
String
toString()
boolean
unschedule()
-
-
-
Constructor Detail
-
AsyncEmbeddedCronJob
public AsyncEmbeddedCronJob(Runnable runnable, EmbeddedCronSchedulerProvider embeddedCronSchedulerProvider, String id, String cronExpression)
-
-
Method Detail
-
unschedule
public boolean unschedule()
- Specified by:
unschedule
in classAsyncJob
-
getId
public String getId()
-
getLastExecutingTime
public long getLastExecutingTime()
-
getNextExecutingTime
public long getNextExecutingTime()
-
isExecuting
public boolean isExecuting()
-
checkAndExecute
public void checkAndExecute(ExecutorService tasksExecutor)
-
-