public void close() throws IOException {

    client.close();
  }
  @Override
  public boolean close() {

    mongoClient.close();
    return true;
  }
Exemple #3
0
 public void shutdown() {
   if (mongoClient != null) {
     mongoClient.close();
   }
 }