| Constructor | Description |
|---|---|
BackgroundJobScheduler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ensureStarted() |
|
protected BackgroundJobStatus<?> |
executeNext() |
|
FutureFactory |
getFutureFactory() |
|
BackgroundJobStatus<?> |
getJob(String id) |
|
BackgroundJobLogFactory |
getJobLogFactory() |
|
Collection<BackgroundJobStatus<?>> |
getJobs() |
|
int |
getJobsToKeep() |
|
BackgroundThreadFactory |
getThreadFactory() |
|
boolean |
isIdle() |
|
protected void |
jobStateChanged(JobEvent e) |
|
void |
run() |
|
<T> BackgroundJobStatus<T> |
scheduldeImmediately(BackgroundJob<T> job) |
|
<T> BackgroundJobStatus<T> |
schedule(String id,
BackgroundJob<T> job) |
|
<T> BackgroundJobStatus<T> |
schedule(BackgroundJob<T> job) |
|
void |
setFutureFactory(FutureFactory futureFactory) |
|
void |
setJobLogFactory(BackgroundJobLogFactory jobLogFactory) |
|
void |
setJobsToKeep(int jobsToKeep) |
|
void |
setThreadFactory(BackgroundThreadFactory threadFactory) |
|
void |
stop() |
public BackgroundJobLogFactory getJobLogFactory()
public void setJobLogFactory(BackgroundJobLogFactory jobLogFactory)
public <T> BackgroundJobStatus<T> schedule(BackgroundJob<T> job)
public <T> BackgroundJobStatus<T> schedule(String id, BackgroundJob<T> job)
public <T> BackgroundJobStatus<T> scheduldeImmediately(BackgroundJob<T> job)
public Collection<BackgroundJobStatus<?>> getJobs()
public boolean isIdle()
public void ensureStarted()
public void stop()
throws InterruptedException
InterruptedExceptionpublic BackgroundJobStatus<?> getJob(String id)
protected void jobStateChanged(JobEvent e)
protected BackgroundJobStatus<?> executeNext() throws InterruptedException
InterruptedExceptionpublic BackgroundThreadFactory getThreadFactory()
public void setThreadFactory(BackgroundThreadFactory threadFactory)
public FutureFactory getFutureFactory()
public void setFutureFactory(FutureFactory futureFactory)
public int getJobsToKeep()
public void setJobsToKeep(int jobsToKeep)
Copyright © 2018 tarent solutions GmbH, Germany. All rights reserved.