Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Thread safety of MQTTAsyncClient for Java

it was written with a view to being thread safe.


All the best
Dave




From:        Manuel Domínguez Dorado <manolodd@xxxxxxxxx>
To:        General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date:        06/02/2015 13:13
Subject:        Re: [paho-dev] Thread safety of MQTTAsyncClient for Java
Sent by:        paho-dev-bounces@xxxxxxxxxxx




Thanks Ian,

I have been reading the API doc but there is nothing about thread safety there. I will use it "as is" as thread-safe. And if we discover a different thing then I will code a intermediate thread-safe class.

Best regards and than you again.


2015-02-06 14:04 GMT+01:00 Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>:
Hi Manuel,

I think the answer is yes, that it is  safe to be called from multiple threads.  I will check with the author of the code that that was his intention, but I would be very surprised if the answer is no.

Ian



On 02/05/2015 05:46 PM, Manuel Domínguez Dorado wrote:
Hello,

I'm currently using an instance of MQTTAsyncClient and I whould like to know if the implementation of publish(...) is thread-safe. I need several threads publishing using this instance (that is already connected) and I would like to know if I have to take care of this question or not.

Kindest regards.

--

---
Manuel Domínguez Dorado
ingeniero ARROBA ManoloDominguez PUNTO com

http://www.ManoloDominguez.com


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto



_______________________________________________
paho-dev mailing list

paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/paho-dev



--
---
Manuel Domínguez Dorado
ingeniero ARROBA ManoloDominguez PUNTO com

http://www.ManoloDominguez.com_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Back to the top