Add getters for the specified timeout values. See #418
This commit is contained in:
parent
87f50e135e
commit
d0e83520cc
@ -200,6 +200,30 @@ public class IdleStateHandler extends ChannelHandlerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the readerIdleTime that was given when instance this class in milliseconds.
|
||||
*
|
||||
*/
|
||||
public long getReaderIdleTimeInMillis() {
|
||||
return readerIdleTimeMillis;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the writerIdleTime that was given when instance this class in milliseconds.
|
||||
*
|
||||
*/
|
||||
public long getWriterIdleTimeInMillis() {
|
||||
return writerIdleTimeMillis;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the allIdleTime that was given when instance this class in milliseconds.
|
||||
*
|
||||
*/
|
||||
public long getAllIdleTimeInMillis() {
|
||||
return allIdleTimeMillis;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeAdd(ChannelHandlerContext ctx) throws Exception {
|
||||
if (ctx.channel().isActive() & ctx.channel().isRegistered()) {
|
||||
|
Loading…
Reference in New Issue
Block a user