Changed the type of second unit timeout from long to int
This commit is contained in:
parent
11478edb5b
commit
789bfd3221
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user