mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Duffy" <gdu...@gmail.com>
Subject Re: sessionIdle vs. java.util.Timer
Date Fri, 22 Sep 2006 07:15:57 GMT
sessionIdle cannot detect a missing response to a specific message,
that capability is always protocol specific. It can, however, detect
idle TCP connections where no messages being sent, received, or both.

HTH
-Greg

On 9/22/06, Paul Chen <chenpaul@gmail.com> wrote:
> Hi, folks,
>
> http://directory.apache.org/subprojects/mina/faq.html#support
>
> says:
>
> ---
> You can't use sessionIdle event simply here. You'll have to use
> java.util.Timer and java.util.TimerTask (or OpenSymphony
> Quartz<http://www.opensymphony.com/quartz/>as an alternative).
> Schedule a timeout task to be executed on timeout
> situation for each request message, and cancel it when you receive the
> corresponding response message.
> ---
>
> Then when is sessionIdle being used?
>
> Thanks for comments
>
>

Mime
View raw message