Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.Beta3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.process.core.timer.impl
Class ThreadPoolSchedulerService

    java.lang.Object
      org.jbpm.process.core.timer.impl.ThreadPoolSchedulerService

All Implemented Interfaces:
  org.drools.core.time.InternalSchedulerService, org.drools.core.time.SchedulerService, GlobalSchedulerService

    public class ThreadPoolSchedulerService

extends Object
implements GlobalSchedulerService

ThreadPool based scheduler service backed by `ThreadPoolSchedulerService`

Nested Class Summary
`static class` | `ThreadPoolSchedulerService.GlobalJDKJobHandle`

Constructor Summary
`ThreadPoolSchedulerService(int poolSize)`

Method Summary
`void` | `initScheduler(org.drools.core.time.TimerService globalTimerService)` Provides handle to inject timerService that owns this scheduler service and initialize it
`void` | `internalSchedule(org.drools.core.time.impl.TimerJobInstance timerJobInstance)`
`boolean` | `removeJob(org.drools.core.time.JobHandle jobHandle)`
`org.drools.core.time.JobHandle` | `scheduleJob(org.drools.core.time.Job job, org.drools.core.time.JobContext ctx, org.drools.core.time.Trigger trigger)`
`void` | `shutdown()` Allows to shutdown the scheduler service

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ThreadPoolSchedulerService

    public ThreadPoolSchedulerService(int poolSize)

Method Detail

### initScheduler

    public void initScheduler(org.drools.core.time.TimerService globalTimerService)

  Description copied from interface: `GlobalSchedulerService`
  Provides handle to inject timerService that owns this scheduler service and initialize it

  Specified by:
    `initScheduler` in interface `GlobalSchedulerService`
  Parameters:
    `globalTimerService` - owner of this scheduler service

### shutdown

    public void shutdown()

  Description copied from interface: `GlobalSchedulerService`
  Allows to shutdown the scheduler service

  Specified by:
    `shutdown` in interface `GlobalSchedulerService`

### scheduleJob

    public org.drools.core.time.JobHandle scheduleJob(org.drools.core.time.Job job,
                                                      org.drools.core.time.JobContext ctx,
                                                      org.drools.core.time.Trigger trigger)

  Specified by:
    `scheduleJob` in interface `org.drools.core.time.SchedulerService`

### removeJob

    public boolean removeJob(org.drools.core.time.JobHandle jobHandle)

  Specified by:
    `removeJob` in interface `org.drools.core.time.SchedulerService`

### internalSchedule

    public void internalSchedule(org.drools.core.time.impl.TimerJobInstance timerJobInstance)

  Specified by:
    `internalSchedule` in interface `org.drools.core.time.InternalSchedulerService`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.Beta3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.