Changed the default time unit to SECONDS

This commit is contained in:
Trustin Lee 2009-02-12 15:33:28 +00:00
parent 7f16fa352a
commit b06e33f5ee
3 changed files with 9 additions and 9 deletions

View File

@ -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(

View File

@ -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) {

View File

@ -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) {