public class ScheduleBucket
extends java.lang.Object
ScheduleSlot
slots that callbacks are
assigned to.
At the time of timer evaluation, callbacks that become triggerable are ordered using the bucket as the first-level order, and slot as the second-level order.
Each statement at statement creation time allocates a buckets, and each timer within the statement allocates a slot. Thus statements that depend on other statements (such as for insert-into), and timers within their statement (such as time window or output rate limit timers) behave deterministically.
Constructor and Description |
---|
ScheduleBucket(int bucketNum)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ScheduleSlot |
allocateSlot()
Returns a new slot in the bucket.
|
ScheduleSlot |
allocateSlot(int slotNumber)
Returns a new slot in the bucket, given a slot number
|
void |
restart()
Restart bucket slot numbering wuch as when a statement is restarted and new slots are allocated.
|
public ScheduleBucket(int bucketNum)
bucketNum
- is a simple integer number for this bucket by which buckets can be sortedpublic void restart()
public ScheduleSlot allocateSlot()
public ScheduleSlot allocateSlot(int slotNumber)