Changed the default time unit to SECONDS
This commit is contained in:
parent
7f16fa352a
commit
b06e33f5ee
@ -63,13 +63,13 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler
|
||||
|
||||
public IdleStateHandler(
|
||||
Timer timer,
|
||||
long readerIdleTimeMillis,
|
||||
long writerIdleTimeMillis,
|
||||
long allIdleTimeMillis) {
|
||||
long readerIdleTimeSeconds,
|
||||
long writerIdleTimeSeconds,
|
||||
long allIdleTimeSeconds) {
|
||||
|
||||
this(timer,
|
||||
readerIdleTimeMillis, writerIdleTimeMillis, allIdleTimeMillis,
|
||||
TimeUnit.MILLISECONDS);
|
||||
readerIdleTimeSeconds, writerIdleTimeSeconds, allIdleTimeSeconds,
|
||||
TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
public IdleStateHandler(
|
||||
|
@ -49,8 +49,8 @@ public class ReadTimeoutHandler extends SimpleChannelUpstreamHandler implements
|
||||
private volatile ReadTimeoutTask task;
|
||||
volatile long lastReadTime;
|
||||
|
||||
public ReadTimeoutHandler(Timer timer, long timeoutMillis) {
|
||||
this(timer, timeoutMillis, TimeUnit.MILLISECONDS);
|
||||
public ReadTimeoutHandler(Timer timer, long timeoutSeconds) {
|
||||
this(timer, timeoutSeconds, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
public ReadTimeoutHandler(Timer timer, long timeout, TimeUnit unit) {
|
||||
|
@ -46,8 +46,8 @@ public class WriteTimeoutHandler extends SimpleChannelDownstreamHandler implemen
|
||||
private final Timer timer;
|
||||
private final long timeoutMillis;
|
||||
|
||||
public WriteTimeoutHandler(Timer timer, long timeoutMillis) {
|
||||
this(timer, timeoutMillis, TimeUnit.MILLISECONDS);
|
||||
public WriteTimeoutHandler(Timer timer, long timeoutSeconds) {
|
||||
this(timer, timeoutSeconds, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
public WriteTimeoutHandler(Timer timer, long timeout, TimeUnit unit) {
|
||||
|
Loading…
Reference in New Issue
Block a user