Added a convenience constructor

This commit is contained in:
Trustin Lee 2009-02-11 05:23:05 +00:00
parent 25bef2d0d2
commit bd0c55caed

View File

@ -46,8 +46,11 @@ public class WriteTimeoutHandler extends SimpleChannelDownstreamHandler implemen
private final Timer timer;
private final long timeoutMillis;
public WriteTimeoutHandler(
Timer timer, long timeout, TimeUnit unit) {
public WriteTimeoutHandler(Timer timer, long timeoutMillis) {
this(timer, timeoutMillis, TimeUnit.MILLISECONDS);
}
public WriteTimeoutHandler(Timer timer, long timeout, TimeUnit unit) {
if (timer == null) {
throw new NullPointerException("timer");
}