Added a convenience constructor

This commit is contained in:
Trustin Lee 2009-02-11 05:23:40 +00:00
parent bd0c55caed
commit 8431db0407

View File

@ -49,8 +49,11 @@ public class ReadTimeoutHandler extends SimpleChannelUpstreamHandler implements
private volatile ReadTimeoutTask task;
volatile long lastReadTime;
public ReadTimeoutHandler(
Timer timer, long timeout, TimeUnit unit) {
public ReadTimeoutHandler(Timer timer, long timeoutMillis) {
this(timer, timeoutMillis, TimeUnit.MILLISECONDS);
}
public ReadTimeoutHandler(Timer timer, long timeout, TimeUnit unit) {
if (timer == null) {
throw new NullPointerException("timer");
}