You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Zlatko Josic <zl...@gmail.com> on 2010/01/26 12:16:34 UTC
WriteFuture order per message
Hi,
My clients have permanent connection to mina based server and I am not shure
how WriteFuture works.
Clients can not send message parallel.
This is a scenario :
1. client sends message
2. server accepts message
3. server writes message and adds listener to WriteFuture( in listener
server detects is message sent to client)
After it the scenario repeats with same connection to server.
Is it posible that listener added to WriteFutere of first message be called
during prosessing some other message?
In other words is this scenario :
1. client sends message
2. server accepts message
3. server writes message and adds listener to WriteFuture( in listener
server detects is message sent to client)
4. server calls WriteFuture listener
Is guaranteed that WriteFuture listener will be called before client sends
second messsage?
Thanks
Zlatko Josic
Re: WriteFuture order per message
Posted by Zlatko Josic <zl...@gmail.com>.
Any ideas ?
On Tue, Jan 26, 2010 at 1:56 PM, Zlatko Josic <zl...@gmail.com>wrote:
> I use mina 1.1.7 version.
>
>
> On Tue, Jan 26, 2010 at 12:16 PM, Zlatko Josic <zl...@gmail.com>wrote:
>
>> Hi,
>>
>> My clients have permanent connection to mina based server and I am not
>> shure how WriteFuture works.
>> Clients can not send message parallel.
>>
>> This is a scenario :
>>
>> 1. client sends message
>> 2. server accepts message
>> 3. server writes message and adds listener to WriteFuture( in listener
>> server detects is message sent to client)
>>
>> After it the scenario repeats with same connection to server.
>>
>> Is it posible that listener added to WriteFutere of first message be
>> called during prosessing some other message?
>>
>> In other words is this scenario :
>>
>> 1. client sends message
>> 2. server accepts message
>> 3. server writes message and adds listener to WriteFuture( in listener
>> server detects is message sent to client)
>> 4. server calls WriteFuture listener
>>
>>
>> Is guaranteed that WriteFuture listener will be called before client sends
>> second messsage?
>>
>>
>> Thanks
>> Zlatko Josic
>>
>
>
Re: WriteFuture order per message
Posted by Zlatko Josic <zl...@gmail.com>.
I use mina 1.1.7 version.
On Tue, Jan 26, 2010 at 12:16 PM, Zlatko Josic <zl...@gmail.com>wrote:
> Hi,
>
> My clients have permanent connection to mina based server and I am not
> shure how WriteFuture works.
> Clients can not send message parallel.
>
> This is a scenario :
>
> 1. client sends message
> 2. server accepts message
> 3. server writes message and adds listener to WriteFuture( in listener
> server detects is message sent to client)
>
> After it the scenario repeats with same connection to server.
>
> Is it posible that listener added to WriteFutere of first message be called
> during prosessing some other message?
>
> In other words is this scenario :
>
> 1. client sends message
> 2. server accepts message
> 3. server writes message and adds listener to WriteFuture( in listener
> server detects is message sent to client)
> 4. server calls WriteFuture listener
>
>
> Is guaranteed that WriteFuture listener will be called before client sends
> second messsage?
>
>
> Thanks
> Zlatko Josic
>