public interface ConnectionProvider
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection provider and releases its resources.
|
static ConnectionProvider |
from(Connection connection) |
Connection |
get()
Returns a new
Connection (perhaps from a Connection pool). |
@Nonnull Connection get()
Connection (perhaps from a Connection pool).void close()
static ConnectionProvider from(@Nonnull Connection connection)
Copyright © 2016–2017. All rights reserved.