Hi Emmanuel,

Thank you very much for the response. I checked with
ConnectionThrottleFilter however i am writing data by keeping a single
connection hence this doesn't fit into my requirement. What i expect to do
is throttle write requests on a single session (something like write 5
messages per sec / write 5 MB of data and then wait etc.). I have searched
and found a class called 'WriteThrottleFilter' in [1] which seems to
describe what i need. Is this supported in later mina releases or may i
please know are there any alternate write throttling mechanisms?

[1] https://issues.apache.org/jira/browse/DIRMINA-262

Thank you very much!




On Sun, Jan 19, 2014 at 11:20 PM, Emmanuel Lécharny <[email protected]>wrote:

> Le 1/19/14 4:55 PM, ishara premadasa a écrit :
> >  Hi,
> >
> > I would like to know whether Apache Mina supports applying TCP
> backpressure
> > on the sending clients? My requirement is that when there are a lot of
> > messages arriving from an extensive publishing client, activating TCP
> > backpressure as then it may stop reading anymore packets from the sockets
> > till the received load is delivered.
>
> You probably mean throttling one connection. Yes, this is possible, you
> can use the ConnectionThrottleFilter for that purpose :
>
>
> /**
>  * A {@link IoFilter} which blocks connections from connecting
>  * at a rate faster than the specified interval.
>  *
>  * @author <a href="http://mina.apache.org";>Apache MINA Project</a>
>  */
> public class ConnectionThrottleFilter extends IoFilterAdapter {
>
> >
> > I have refereed several docs on the subject but i couldn't find a good
> > resource which provides this information. Can someone please guide me on
> > how to configure Mina to apply TCP backpressure as per my requirement
> here.
> > I am using Apache Mina 1.1.7 version.
>
> Mina 1.1.7 is not anymore supported. I suggest you switch to Mina 2.0.
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>


-- 
*Best Regards.*

*Ishara Premadasa,*
http://isharapremadasa.blogspot.com

Reply via email to