vesoft-inc / nebula-java

Client API and data importer of Nebula Graph in Java
Apache License 2.0
164 stars 121 forks source link

Some qustion with the class 'SessionPool' #531

Closed hesy007 closed 6 months ago

hesy007 commented 11 months ago
  1. Why add syncronized to the method public synchronized ResultSet execute(String stmt, Map<String, Object> parameterMap)?
  2. and why this method has been marked as 'deprecated' ?
Nicole00 commented 6 months ago

the synchronized lock is unnecessary, it has been removed. For sessionPool, our original intention is to provide a thread-safe execution entry that is convenient for users to use for multi-threads. So we plan to only provide the execute interface and not encapsulate other interfaces.