Results 1 to 1 of 1

Thread: GridFsTemplate thread safety

  1. #1

    Question GridFsTemplate thread safety

    Is the GridFsTemplate thread safe? It is mentioned for the MongoTemplate that it is thread safe in the documentation
    here. But what about the GridFsTemplate?

    For example if in some method of my object is creating, reading, deleting a single file (GridFsResource), and I am expecting there are several threads which will be executing that method as this object is autowired in one of the controller with Spring MVC.

    Can I be certain that GridFsTemplate will make sure that everything is performed in isolation if I reuse the same gridFsTemplate singleton bean everywhere or do I have to take care of synchronization for operations performed with GridFsTemplate myself?
    Last edited by patelatharva; Nov 14th, 2012 at 09:45 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •