Hi all,
I have a timer thread inside a custom IoFilter that checks for
request timeouts after sending a message. If a timeout occurs, it
sends a synthetic message down the filter chain. The question is, is
this thread safe, or am I violating the MINA thread model?
The following code is what I'm doing in the timer thread to inject
the message:
String filterName = ... // name of the timeout-checking filter
NextFilter filter =
session.getFilterChain ().getNextFilter (filterName);
filter.messageReceived
(session, new RequestTimeoutMessage ());
Any advice appreciated,
Cheers,
Matthew.