|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.support.SupportSchedulingServiceImpl
public class SupportSchedulingServiceImpl
Constructor Summary | |
---|---|
SupportSchedulingServiceImpl()
|
Method Summary | |
---|---|
void |
add(long afterMSec,
ScheduleHandle callback,
ScheduleSlot slot)
Add a callback for after the given milliseconds from the current time. |
ScheduleBucket |
allocateBucket()
|
void |
destroy()
Destroy the service. |
void |
evaluate(java.util.Collection<ScheduleHandle> handles)
Evaluate the current time and add to the collection any handles scheduled for execution. |
void |
evaluateLock()
|
static void |
evaluateSchedule(SchedulingService service)
|
void |
evaluateUnLock()
|
java.util.Map<java.lang.Long,ScheduleHandle> |
getAdded()
|
java.lang.Long |
getFurthestTimeHandle()
Returns furthest in the future handle. |
int |
getScheduleHandleCount()
Returns count of handles. |
long |
getTime()
Returns the current engine time. |
int |
getTimeHandleCount()
Returns time handle count. |
boolean |
isScheduled(ScheduleHandle scheduleHandle)
Returns true if the handle has been scheduled already. |
void |
remove(ScheduleHandle callback,
ScheduleSlot slot)
Remove a handle. |
void |
setTime(long currentTime)
Set the time based upon which the evaluation of events invokes callbacks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SupportSchedulingServiceImpl()
Method Detail |
---|
public java.util.Map<java.lang.Long,ScheduleHandle> getAdded()
public void evaluateLock()
public void evaluateUnLock()
public void add(long afterMSec, ScheduleHandle callback, ScheduleSlot slot)
SchedulingService
add
in interface SchedulingService
afterMSec
- number of millisec to get a callbackcallback
- to addslot
- allows ordering of concurrent callbackspublic void remove(ScheduleHandle callback, ScheduleSlot slot)
SchedulingService
remove
in interface SchedulingService
callback
- to removeslot
- for which the callback was addedpublic long getTime()
TimeProvider
getTime
in interface TimeProvider
public void setTime(long currentTime)
SchedulingService
setTime
in interface SchedulingService
currentTime
- to setpublic void evaluate(java.util.Collection<ScheduleHandle> handles)
SchedulingService
evaluate
in interface SchedulingService
handles
- is a collection of handles populated by the service with any callbacks due
for the current timepublic ScheduleBucket allocateBucket()
public static void evaluateSchedule(SchedulingService service)
public void destroy()
SchedulingService
destroy
in interface SchedulingService
public int getTimeHandleCount()
SchedulingService
getTimeHandleCount
in interface SchedulingService
public java.lang.Long getFurthestTimeHandle()
SchedulingService
getFurthestTimeHandle
in interface SchedulingService
public int getScheduleHandleCount()
SchedulingService
getScheduleHandleCount
in interface SchedulingService
public boolean isScheduled(ScheduleHandle scheduleHandle)
SchedulingService
isScheduled
in interface SchedulingService
scheduleHandle
- to check
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |