You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by David R Robison <dr...@openroadsconsulting.com> on 2012/02/17 13:55:11 UTC

Get Write queue from session

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: drrobison@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.


Re: Get Write queue from session

Posted by Emmanuel Lécharny <el...@gmail.com>.
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
>> <dr...@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: drrobison@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


Re: Get Write queue from session

Posted by David R Robison <dr...@openroadsconsulting.com>.
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

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
> <dr...@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: drrobison@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.
>>

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison@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.


Re: Get Write queue from session

Posted by Julien Vermillard <jv...@gmail.com>.
tried getWriteRequestQueue() getScheduledWriteMessages() on IoSession ?


On Fri, Feb 17, 2012 at 1:55 PM, David R Robison
<dr...@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: drrobison@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.
>