com.espertech.esper.schedule
Class ScheduleSlot

java.lang.Object
  extended by com.espertech.esper.schedule.ScheduleSlot
All Implemented Interfaces:
MetaDefItem, java.io.Serializable, java.lang.Comparable<ScheduleSlot>

public class ScheduleSlot
extends java.lang.Object
implements java.lang.Comparable<ScheduleSlot>, MetaDefItem, java.io.Serializable

This class is a slot in a ScheduleBucket for sorting schedule service callbacks.

See Also:
Serialized Form

Constructor Summary
ScheduleSlot(int bucketNum, int slotNum)
          Ctor.
 
Method Summary
 int compareTo(ScheduleSlot scheduleCallbackSlot)
           
 boolean equals(java.lang.Object o)
           
 int getBucketNum()
          Returns the bucket number.
 int getSlotNum()
          Returns the slot number.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduleSlot

public ScheduleSlot(int bucketNum,
                    int slotNum)
Ctor.

Parameters:
bucketNum - is the number of the bucket the slot belongs to
slotNum - is the slot number for ordering within the bucket
Method Detail

getBucketNum

public int getBucketNum()
Returns the bucket number.

Returns:
bucket number

getSlotNum

public int getSlotNum()
Returns the slot number.

Returns:
slot number

compareTo

public int compareTo(ScheduleSlot scheduleCallbackSlot)
Specified by:
compareTo in interface java.lang.Comparable<ScheduleSlot>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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