()
| 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) |