qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Ross <tr...@redhat.com>
Subject Re: Removing a receiver.
Date Thu, 17 Oct 2013 20:51:48 GMT

On 10/17/2013 04:32 PM, Rajesh Khan wrote:
>  From the manual it states that you could read from multiple receivers and
> you could do that:
> by adding a receiver to a session as such:
>
> Receiver receiver1 = session.createReceiver(address1);
>
> Then you could simply read it:
> Message message = session.nextReceiver().fetch();
>
> Now my question is how do I remove a receiver once I do not want to receive
> from it ?
>

You can call  receiver1.close().

-Ted


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message