public class DefaultConnectionSourceHandler extends Object implements ConnectionSourceHandler
Constructor and Description |
---|
DefaultConnectionSourceHandler(ConnectionSourceFactory connectionSourceFactory,
ConnectionSourceStorage connectionSourceStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnectionSource() |
void |
closeConnectionSource(String databaseName) |
<R> R |
withConnectionSource(ConnectionSourceCallback<R> callback) |
<R> R |
withConnectionSource(String databaseName,
ConnectionSourceCallback<R> callback) |
@Inject public DefaultConnectionSourceHandler(@Nonnull ConnectionSourceFactory connectionSourceFactory, @Nonnull ConnectionSourceStorage connectionSourceStorage)
@Nullable public <R> R withConnectionSource(@Nonnull ConnectionSourceCallback<R> callback)
withConnectionSource
in interface ConnectionSourceHandler
@Nullable public <R> R withConnectionSource(@Nonnull String databaseName, @Nonnull ConnectionSourceCallback<R> callback) throws RuntimeSQLException
withConnectionSource
in interface ConnectionSourceHandler
RuntimeSQLException
public void closeConnectionSource()
closeConnectionSource
in interface ConnectionSourceHandler
public void closeConnectionSource(@Nonnull String databaseName)
closeConnectionSource
in interface ConnectionSourceHandler