Represents an asynchronous SQL client
| Constructor and description |
|---|
AsyncSQLClient
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
void |
close()Close the client and release all resources. |
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> whenDone)Close the client and release all resources. |
void |
getConnection(io.vertx.core.Handler<io.vertx.core.AsyncResult<SQLConnection>> handler)Returns a connection that can be used to perform SQL operations on. |
java.lang.Object |
getDelegate() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Close the client and release all resources. Note that closing is asynchronous.
Close the client and release all resources. Call the handler when close is complete.
whenDone - handler that will be called when close is completeReturns a connection that can be used to perform SQL operations on. It's important to remember to close the connection when you are done, so it is returned to the pool.
handler - the handler which is called when the JdbcConnection object is ready for use.