All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rhq.plugins.database.ConnectionPoolingSupport Maven / Gradle / Ivy

The newest version!
/*
 * RHQ Management Platform
 * Copyright (C) 2005-2013 Red Hat, Inc.
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */

package org.rhq.plugins.database;

/**
 * 

* A contract that all database related resource components should obey to. *

*

* Results of calls to {@link #supportsConnectionPooling()} and {@link #getPooledConnectionProvider()} * MUST be consistent. *

*

* In practice, a top level server database component should be able to create a {@link PooledConnectionProvider} * instance, and child servers and services should indicate they support connection pooling only if their parent * component does. *

* * @author Thomas Segismont */ public interface ConnectionPoolingSupport { /** * @return true if this component can give a reference to a {@link PooledConnectionProvider}, false otherwise. */ boolean supportsConnectionPooling(); /** * @return a reference to a {@link PooledConnectionProvider} or null if this component does not support connection * pooling. * @see #supportsConnectionPooling() */ PooledConnectionProvider getPooledConnectionProvider(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy