Add getters for the specified timeout values. See #418
This commit is contained in:
parent
70bfaf4454
commit
28a1992bf4
@ -212,6 +212,30 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops the {@link Timer} which was specified in the constructor of this
|
||||
* handler. You should not call this method if the {@link Timer} is in use
|
||||
|
Loading…
Reference in New Issue
Block a user