Changed the type of second unit timeout from long to int

This commit is contained in:
Trustin Lee 2009-02-13 04:24:29 +00:00
parent 11478edb5b
commit 789bfd3221
3 changed files with 5 additions and 5 deletions

View File

@ -63,9 +63,9 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler
public IdleStateHandler(
Timer timer,
long readerIdleTimeSeconds,
long writerIdleTimeSeconds,
long allIdleTimeSeconds) {
int readerIdleTimeSeconds,
int writerIdleTimeSeconds,
int allIdleTimeSeconds) {
this(timer,
readerIdleTimeSeconds, writerIdleTimeSeconds, allIdleTimeSeconds,

View File

@ -51,7 +51,7 @@ public class ReadTimeoutHandler extends SimpleChannelUpstreamHandler implements
private volatile ReadTimeoutTask task;
volatile long lastReadTime;
public ReadTimeoutHandler(Timer timer, long timeoutSeconds) {
public ReadTimeoutHandler(Timer timer, int timeoutSeconds) {
this(timer, timeoutSeconds, TimeUnit.SECONDS);
}

View File

@ -48,7 +48,7 @@ public class WriteTimeoutHandler extends SimpleChannelDownstreamHandler implemen
private final Timer timer;
private final long timeoutMillis;
public WriteTimeoutHandler(Timer timer, long timeoutSeconds) {
public WriteTimeoutHandler(Timer timer, int timeoutSeconds) {
this(timer, timeoutSeconds, TimeUnit.SECONDS);
}