This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Java Threadsafety/Documentation

Comments

4 comments

  • Avatar
    Itay Taragano

    Hi Francis,

    If you initialize Cloudinary objects per thread, it should be thread safe.

    We have full documentation available at:  http://cloudinary.com/documentation/java_integration

    In addition, javadoc jar available for download at:  http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22cloudinary%22

    0
    Comment actions Permalink
  • Avatar
    Francis Van Wetering

    Well, if I instantiate a separate object in every thread, it's rather trivially threadsafe, isn't it?  I'm building a REST API which consumes Cloudinary information, and verifies via the API.  I'd gain a significant amount of speed by initializing it in the static initializer, and allowing each thread to perform its own calls to the API on the same object.  So, are the Cloudinary Objects thread safe, or is concurrent access to an Object dangerous?

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    Hi Francis,

    As long as you don't update the config map concurrently and don't share Url and Transformation objects, everything should be fine.

    0
    Comment actions Permalink
  • Avatar
    Francis Van Wetering

    Great, thank you!

    0
    Comment actions Permalink

Post is closed for comments.