官方说:
When the OCCI environment is created with THREADED_MUTEXED mode, then only the Environment, Map, ConnectionPool, StatelessConnectionPool and Connection objects are thread-safe. That is, if two threads make simultaneous calls on one of these objects, then OCCI serializes them internally. However, note that all other OCCI objects, such as Statement, ResultSet, SQLException, Stream, and so on, are not thread-safe as, applications should not operate on these objects simultaneously from multiple threads.
据此,我的理解是:
不同线程可以调用同一个Environment, Map, ConnectionPool, StatelessConnectionPool and Connection。
不同线程不可以调用同一个Statement, ResultSet, SQLException, Stream
所以,可以在同一个Environment基于不同的statement,复用同一个线程安全的对象,比如StatelessConnectionPool