You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Zheng, Chuck" <ch...@ebay.com> on 2007/05/02 19:15:38 UTC
How to set timeout to 800ms for read?
IoSession.setIdleTime(IdleStatus, idleTime) only take idleTime in
seconds. How to do milliseconds?
Thx
Chuck
Re: How to set timeout to 800ms for read?
Posted by Trustin Lee <tr...@gmail.com>.
On 5/3/07, Trustin Lee <tr...@gmail.com> wrote:
> On 5/3/07, Zheng, Chuck <ch...@ebay.com> 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
Re: How to set timeout to 800ms for read?
Posted by Trustin Lee <tr...@gmail.com>.
On 5/3/07, Zheng, Chuck <ch...@ebay.com> 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.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6