Added a convenience constructor
This commit is contained in:
parent
25bef2d0d2
commit
bd0c55caed
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user