public abstract class Bucket extends Object
Modifier and Type | Field and Description |
---|---|
static HashWheelTimer |
BUCKET_HASH_WHEEL_TIMER |
protected HashWheelTask |
hashWheelTask |
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
acquire() |
abstract void |
acquire(int timeout) |
HashWheelTask |
getHashWheelTask() |
void |
release() |
void |
setHashWheelTask(HashWheelTask hashWheelTask) |
public static HashWheelTimer BUCKET_HASH_WHEEL_TIMER
protected HashWheelTask hashWheelTask
public HashWheelTask getHashWheelTask()
public void setHashWheelTask(HashWheelTask hashWheelTask)
public void release()
public abstract boolean acquire()
public abstract void acquire(int timeout) throws TimeoutException
TimeoutException
Copyright © 2020 Voovan. All rights reserved.