問題描述
GridFS Java 對像是線程安全的嗎? (Are GridFS Java objects thread safe?)
I know that Java com.mongodb.Mongo objects are thread safe, but if I use the database returned from it to create a GridFS object, is that GridFS object also thread safe?
Thanks.
‑‑‑‑‑
參考解法
方法 1:
Yes, instances of GridFS are also thread safe.