Simpler method naming in Timeout
This commit is contained in:
parent
6b9f7065a2
commit
85e1684084
@ -589,12 +589,12 @@ public class HashedWheelTimer implements Timer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Timer getTimer() {
|
public Timer timer() {
|
||||||
return HashedWheelTimer.this;
|
return HashedWheelTimer.this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TimerTask getTask() {
|
public TimerTask task() {
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,12 +24,12 @@ public interface Timeout {
|
|||||||
/**
|
/**
|
||||||
* Returns the {@link Timer} that created this handle.
|
* Returns the {@link Timer} that created this handle.
|
||||||
*/
|
*/
|
||||||
Timer getTimer();
|
Timer timer();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the {@link TimerTask} which is associated with this handle.
|
* Returns the {@link TimerTask} which is associated with this handle.
|
||||||
*/
|
*/
|
||||||
TimerTask getTask();
|
TimerTask task();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns {@code true} if and only if the {@link TimerTask} associated
|
* Returns {@code true} if and only if the {@link TimerTask} associated
|
||||||
|
Loading…
Reference in New Issue
Block a user