Le 2/17/12 8:05 PM, David R Robison a écrit :
I saw getWriteRequestQueue but it has no function to return the number
of queued messages. Is this what getScheduledMessages is to return? The
number of queued message? I was confused between scheduled and queued. David
you are right, there is no way to get back the queue size, it's hidden by the implementation.

I would suggest you create a JIRA asking for this information to be exposed so that one can do :
session.getWriterRequestQueue().size();


On 2/17/2012 1:48 PM, Julien Vermillard wrote:
tried getWriteRequestQueue() getScheduledWriteMessages() on IoSession ?


On Fri, Feb 17, 2012 at 1:55 PM, David R Robison
<drrobi...@openroadsconsulting.com>   wrote:
Is it possible to access the write queue from an IoSession? I want to
test the queue length and possibly discard some messages to be sent if
the queue is too full. Alternatively, if we could set a maximum queue
size this would accomplish the same. David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobi...@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526



This email communication (including any attachments) may contain confidential 
and/or privileged material intended solely for the individual or entity to 
which it is addressed.
If you are not the intended recipient, please delete this email immediately.



--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to