public interface GlobalSchedulerService
extends org.drools.core.time.SchedulerService, org.drools.core.time.InternalSchedulerService
GlobalSchedulerService
Modifier and Type | Method and Description |
---|---|
org.drools.core.time.JobHandle |
buildJobHandleForContext(NamedJobContext ctx)
Builds JobHandle based on NamedJobContext
|
void |
initScheduler(org.drools.core.time.TimerService timerService)
Provides handle to inject timerService that owns this scheduler service and initialize it
|
boolean |
isTransactional()
Indicates if given implementation of scheduler service supports
transactional timer store.
|
boolean |
isValid(GlobalTimerService.GlobalJobHandle jobHandle)
Verifies if given job is still valid or it was already executed/vetoed.
|
boolean |
retryEnabled()
Indicates if given implementation of scheduler service supports
retries of failed timer jobs
|
void |
setInterceptor(SchedulerServiceInterceptor interceptor)
Allows to set interceptor that will be used to schedule timer instances
|
void |
shutdown()
Allows to shutdown the scheduler service
|
void initScheduler(org.drools.core.time.TimerService timerService)
timerService
- owner of this scheduler servicevoid shutdown()
org.drools.core.time.JobHandle buildJobHandleForContext(NamedJobContext ctx)
ctx
- boolean isTransactional()
boolean retryEnabled()
void setInterceptor(SchedulerServiceInterceptor interceptor)
interceptor
- boolean isValid(GlobalTimerService.GlobalJobHandle jobHandle)
jobHandle
- Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.