• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Is LocalDevice.send thread-safe?

    BACnet4J general discussion
    2
    4
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      manojnair.s
      last edited by

      Hello All,

      I'm using Bacnet4j 3.2.3 version of library. In fact, I have a situation where-in concurrent threads are calling the send(RemoteDevice d, ConfirmedRequestService serviceRequest) method of a LocalDevice object. As far as my testing, I don't see any errors related to concurrency here, however I would like to ask your opinion on this, whether it is already thread-safe or do I need to call LocalDevice.send inside a reentrant-lock?

      Thank you very much.
      Manoj

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi Manoj,

        That's quite an old version! I had a look and it certainly appears that it would be thread safe, since actual transmission of messages is handled by queues in the DefaultTransport class, but given it's quite (not even the latest 3.2.x version) outdated from our perspective our working knowledge or support of it is limited.

        1 Reply Last reply Reply Quote 0
        • M
          manojnair.s
          last edited by

          Hi Phil,

          Thank you very much your response. Much appreciated.
          In fact, I'm seriously considering to upgrade to the latest version, however not sure about the timelines right now.

          Thank you very much.
          Manoj

          1 Reply Last reply Reply Quote 0
          • M
            manojnair.s
            last edited by

            Hi Phill,

            Which is the current production release for Bacnet4j which I can upgrade to? 4.1.6?

            Thanks and appreciate your support.
            Manoj

            1 Reply Last reply Reply Quote 0
            • First post
              Last post