HashedWheelBucket

cc.otavia.core.timer.HashedWheelTimer.HashedWheelBucket
See theHashedWheelBucket companion object
final class HashedWheelBucket

Bucket that stores HashedWheelTimeouts. These are stored in a linked-list like datastructure to allow easy removal of HashedWheelTimeouts in the middle. Also the HashedWheelTimeout act as nodes themself and so no extra object creation is needed.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addTimeout(timeout: HashedWheelTimeout): Unit

Add HashedWheelTimeout to this bucket.

Add HashedWheelTimeout to this bucket.

Attributes

def clearTimeouts(set: Set[Timeout]): Unit

Clear this bucket and return all not expired / cancelled Timeouts.

Clear this bucket and return all not expired / cancelled Timeouts.

Attributes

def expireTimeouts(deadline: Long): Unit

Expire all HashedWheelTimeouts for the given deadline.

Expire all HashedWheelTimeouts for the given deadline.

Attributes