interface Connection extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isValid(long timeOut,
TimeUnit unit)
Determines if this connection is still valid or not.
|
void close() throws DatabaseException
close
in interface AutoCloseable
DatabaseException
boolean isValid(long timeOut, TimeUnit unit)
timeOut
- The time ito wait for the database operation used to validate the connection to complete.unit
- time unit of timeOut
Copyright © 2021. All rights reserved.