public void close() { if ( driver != null ) { driver.close(); } }
@Override public void close() { driver.close(); }
@Override public void run() { driver.close(); } });
public void close() { // this.session.close(); this.driver.close(); }
@Override public synchronized void close() { if (boltDriver != null) { try { LOGGER.info("Shutting down Bolt driver {} ", boltDriver); boltDriver.close(); } catch (Exception e) { throw new RuntimeException(e); } } }
@Override public synchronized void close() { if (boltDriver != null) { try { LOGGER.info("Shutting down Bolt driver {} ", boltDriver); boltDriver.close(); } catch (Exception e) { throw new RuntimeException(e); } } }
@Override protected void shutDown() { try { if (session != null) session.close(); } catch (Throwable e) { // do nothing } try { if (driver != null) driver.close(); } catch (Throwable e) { // do nothing } }
@Override protected void shutDown() { try { if (session != null) session.close(); } catch (Throwable e) { // do nothing } try { if (driver != null) driver.close(); } catch (Throwable e) { // do nothing } }
/** * Disconnect from Neo4j, clearing up any session resources, but don't give any output. * Intended only to be used if connect fails. */ void silentDisconnect() { try { if (session != null) { session.close(); } if (driver != null) { driver.close(); } } finally { session = null; driver = null; } }
} finally { if (driver != null) { driver.close();
@Override protected void doDestroy() { try { driver.close(); } catch (Exception e) { getMonitor().warn("Error closing graph " + createGraph().configuration(), e); } super.doDestroy(); } }
@Override protected void doDestroy() { try { driver.close(); } catch (Exception e) { getMonitor().warn("Error closing graph " + createGraph().configuration(), e); } super.doDestroy(); } }
@Override protected void doDestroy() { try { driver.close(); } catch (Exception e) { getMonitor().warn("Error closing graph " + createGraph().configuration(), e); } super.doDestroy(); } }
@Override protected void doDestroy() { try { driver.close(); } catch (Exception e) { getMonitor().warn("Error closing graph " + createGraph().configuration(), e); } super.doDestroy(); } }