Package io.netty.util
Class HashedWheelTimer.HashedWheelBucket
java.lang.Object
io.netty.util.HashedWheelTimer.HashedWheelBucket
- Enclosing class:
HashedWheelTimer
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.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddHashedWheelTimer.HashedWheelTimeoutto this bucket.voidclearTimeouts(Set<Timeout> set) Clear this bucket and return all not expired / cancelledTimeouts.voidexpireTimeouts(long deadline) Expire allHashedWheelTimer.HashedWheelTimeouts for the givendeadline.
-
Field Details
-
head
-
tail
-
-
Constructor Details
-
HashedWheelBucket
private HashedWheelBucket()
-
-
Method Details
-
addTimeout
AddHashedWheelTimer.HashedWheelTimeoutto this bucket. -
expireTimeouts
public void expireTimeouts(long deadline) Expire allHashedWheelTimer.HashedWheelTimeouts for the givendeadline. -
remove
-
clearTimeouts
Clear this bucket and return all not expired / cancelledTimeouts. -
pollTimeout
-