MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / hasConnection

Method hasConnection

Utils/src/eu/the5zig/util/db/Database.java:205–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 public synchronized boolean hasConnection() {
206 try {
207 return connected && this.connection != null && this.connection.isValid(10) && !this.connection.isClosed();
208 } catch (Exception e) {
209 return false;
210 }
211 }
212
213 public synchronized void closeConnection() {
214 if (!this.connected)

Callers 1

getConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected