com.espertech.esper.schedule
Class SchedulingMgmtServiceImpl

java.lang.Object
  extended by com.espertech.esper.schedule.SchedulingMgmtServiceImpl
All Implemented Interfaces:
SchedulingMgmtService

public final class SchedulingMgmtServiceImpl
extends java.lang.Object
implements SchedulingMgmtService

Implements the schedule service by simply keeping a sorted set of long millisecond values and a set of handles for each.

Synchronized since statement creation and event evaluation by multiple (event send) threads can lead to callbacks added/removed asynchronously.


Constructor Summary
SchedulingMgmtServiceImpl()
          Constructor.
 
Method Summary
 ScheduleBucket allocateBucket()
          Returns a bucket from which slots can be allocated for ordering concurrent callbacks.
 void destroy()
          Destroy the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulingMgmtServiceImpl

public SchedulingMgmtServiceImpl()
Constructor.

Method Detail

destroy

public void destroy()
Description copied from interface: SchedulingMgmtService
Destroy the service.

Specified by:
destroy in interface SchedulingMgmtService

allocateBucket

public ScheduleBucket allocateBucket()
Description copied from interface: SchedulingMgmtService
Returns a bucket from which slots can be allocated for ordering concurrent callbacks.

Specified by:
allocateBucket in interface SchedulingMgmtService
Returns:
bucket

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com