You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Hanson Char (JIRA)" <ji...@apache.org> on 2006/09/13 15:33:25 UTC

[jira] Updated: (DIRMINA-262) Controlling rate of writes in Mina 0.8.2

     [ http://issues.apache.org/jira/browse/DIRMINA-262?page=all ]

Hanson Char updated DIRMINA-262:
--------------------------------

    Attachment: WriteThrottleFilter.java

Please find attached the WriteThrottleFilter.java.

Thanks very much for the help!  Much appreciated.

> Controlling rate of writes in Mina 0.8.2
> ----------------------------------------
>
>                 Key: DIRMINA-262
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-262
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.8.2
>            Reporter: Hanson Char
>         Attachments: WriteThrottleFilter.java
>
>
> Creates a filter that throttle the write request according to a given rate, so one can control the rate of physical network write operations to not exceeding a specific number of messages.
> For example, can I say for a particular socket connection session Mina should write physically no more than 3 messages per second ?  Message here means the argument that get passed to session.write(Object).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Updated: (DIRMINA-262) Controlling rate of writes in Mina 0.8.2

Posted by st...@jpmorgan.com.
Why is it necessary to synchronise the filterWrite() method?

This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.