Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR5
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
`org.drools.core.time.JobHandle` | `buildJobHandleForContext(NamedJobContext ctx)`
`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` | `isTransactional()`
`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` | `setInterceptor(SchedulerServiceInterceptor interceptor)`
`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`

### buildJobHandleForContext

    public org.drools.core.time.JobHandle buildJobHandleForContext(NamedJobContext ctx)

  Specified by:
    `buildJobHandleForContext` in interface `GlobalSchedulerService`

### isTransactional

    public boolean isTransactional()

  Specified by:
    `isTransactional` in interface `GlobalSchedulerService`

### setInterceptor

    public void setInterceptor(SchedulerServiceInterceptor interceptor)

  Specified by:
    `setInterceptor` in interface `GlobalSchedulerService`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR5
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.