Package org.jboss.netty.util
Class HashedWheelTimer.HashedWheelBucket
java.lang.Object
org.jboss.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 TypeMethodDescriptionvoid
AddHashedWheelTimer.HashedWheelTimeout
to this bucket.void
clearTimeouts
(Set<Timeout> set) Clear this bucket and return all not expired / cancelledTimeout
s.void
expireTimeouts
(long deadline) Expire allHashedWheelTimer.HashedWheelTimeout
s for the givendeadline
.void
-
Field Details
-
head
-
tail
-
-
Constructor Details
-
HashedWheelBucket
private HashedWheelBucket()
-
-
Method Details
-
addTimeout
AddHashedWheelTimer.HashedWheelTimeout
to this bucket. -
expireTimeouts
public void expireTimeouts(long deadline) Expire allHashedWheelTimer.HashedWheelTimeout
s for the givendeadline
. -
remove
-
clearTimeouts
Clear this bucket and return all not expired / cancelledTimeout
s. -
pollTimeout
-