On 5/3/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
On 5/3/07, Zheng, Chuck <[EMAIL PROTECTED]> wrote:
> IoSession.setIdleTime(IdleStatus, idleTime) only take idleTime in
> seconds. How to do milliseconds?
The idleness of sessions are decided every second, so you can't
specify the idle time in milliseconds.
I'd suggest you to use java.util.Timer or Quartz. Implementing your
own timeout scheduler might be better if the timeout setting doesn't
change in runtime (i.e. constant).
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6