/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.commons.pool2.impl;

import java.util.Set;

Defines the methods that will be made available via JMX. NOTE: This interface exists only to define those attributes and methods that will be made available via JMX. It must not be implemented by clients as it is subject to change between major, minor and patch version releases of commons pool. Clients that implement this interface may not, therefore, be able to upgrade to a new minor or patch release without requiring code changes.
Since:2.0
/** * Defines the methods that will be made available via JMX. * * NOTE: This interface exists only to define those attributes and methods that * will be made available via JMX. It must not be implemented by clients * as it is subject to change between major, minor and patch version * releases of commons pool. Clients that implement this interface may * not, therefore, be able to upgrade to a new minor or patch release * without requiring code changes. * * @since 2.0 */
public interface GenericObjectPoolMXBean { // Getters for basic configuration settings
Returns:See BaseGenericObjectPool.getBlockWhenExhausted()
/** * See {@link GenericObjectPool#getBlockWhenExhausted()} * @return See {@link GenericObjectPool#getBlockWhenExhausted()} */
boolean getBlockWhenExhausted();
Returns:See BaseGenericObjectPool.getLifo()
/** * See {@link GenericObjectPool#getLifo()} * @return See {@link GenericObjectPool#getLifo()} */
boolean getFairness();
Returns:See BaseGenericObjectPool.getFairness()
/** * See {@link GenericObjectPool#getFairness()} * @return See {@link GenericObjectPool#getFairness()} */
boolean getLifo();
Returns:See GenericObjectPool.getMaxIdle()
/** * See {@link GenericObjectPool#getMaxIdle()} * @return See {@link GenericObjectPool#getMaxIdle()} */
int getMaxIdle();
Returns:See BaseGenericObjectPool.getMaxTotal()
/** * See {@link GenericObjectPool#getMaxTotal()} * @return See {@link GenericObjectPool#getMaxTotal()} */
int getMaxTotal();
Returns:See BaseGenericObjectPool.getMaxWaitMillis()
/** * See {@link GenericObjectPool#getMaxWaitMillis()} * @return See {@link GenericObjectPool#getMaxWaitMillis()} */
long getMaxWaitMillis();
Returns:See BaseGenericObjectPool.getMinEvictableIdleTimeMillis()
/** * See {@link GenericObjectPool#getMinEvictableIdleTimeMillis()} * @return See {@link GenericObjectPool#getMinEvictableIdleTimeMillis()} */
long getMinEvictableIdleTimeMillis();
Returns:See GenericObjectPool.getMinIdle()
/** * See {@link GenericObjectPool#getMinIdle()} * @return See {@link GenericObjectPool#getMinIdle()} */
int getMinIdle();
Returns:See GenericObjectPool.getNumActive()
/** * See {@link GenericObjectPool#getNumActive()} * @return See {@link GenericObjectPool#getNumActive()} */
int getNumActive();
Returns:See GenericObjectPool.getNumIdle()
/** * See {@link GenericObjectPool#getNumIdle()} * @return See {@link GenericObjectPool#getNumIdle()} */
int getNumIdle();
Returns:See BaseGenericObjectPool.getNumTestsPerEvictionRun()
/** * See {@link GenericObjectPool#getNumTestsPerEvictionRun()} * @return See {@link GenericObjectPool#getNumTestsPerEvictionRun()} */
int getNumTestsPerEvictionRun();
Returns:See BaseGenericObjectPool.getTestOnCreate()
Since:2.2
/** * See {@link GenericObjectPool#getTestOnCreate()} * @return See {@link GenericObjectPool#getTestOnCreate()} * @since 2.2 */
boolean getTestOnCreate();
Returns:See BaseGenericObjectPool.getTestOnBorrow()
/** * See {@link GenericObjectPool#getTestOnBorrow()} * @return See {@link GenericObjectPool#getTestOnBorrow()} */
boolean getTestOnBorrow();
Returns:See BaseGenericObjectPool.getTestOnReturn()
/** * See {@link GenericObjectPool#getTestOnReturn()} * @return See {@link GenericObjectPool#getTestOnReturn()} */
boolean getTestOnReturn();
Returns:See BaseGenericObjectPool.getTestWhileIdle()
/** * See {@link GenericObjectPool#getTestWhileIdle()} * @return See {@link GenericObjectPool#getTestWhileIdle()} */
boolean getTestWhileIdle();
Returns:See BaseGenericObjectPool.getTimeBetweenEvictionRunsMillis()
/** * See {@link GenericObjectPool#getTimeBetweenEvictionRunsMillis()} * @return See {@link GenericObjectPool#getTimeBetweenEvictionRunsMillis()} */
long getTimeBetweenEvictionRunsMillis();
Returns:See BaseGenericObjectPool.isClosed()
/** * See {@link GenericObjectPool#isClosed()} * @return See {@link GenericObjectPool#isClosed()} */
boolean isClosed(); // Getters for monitoring attributes
Returns:See BaseGenericObjectPool.getBorrowedCount()
/** * See {@link GenericObjectPool#getBorrowedCount()} * @return See {@link GenericObjectPool#getBorrowedCount()} */
long getBorrowedCount();
Returns:See BaseGenericObjectPool.getReturnedCount()
/** * See {@link GenericObjectPool#getReturnedCount()} * @return See {@link GenericObjectPool#getReturnedCount()} */
long getReturnedCount();
Returns:See BaseGenericObjectPool.getCreatedCount()
/** * See {@link GenericObjectPool#getCreatedCount()} * @return See {@link GenericObjectPool#getCreatedCount()} */
long getCreatedCount();
Returns:See BaseGenericObjectPool.getDestroyedCount()
/** * See {@link GenericObjectPool#getDestroyedCount()} * @return See {@link GenericObjectPool#getDestroyedCount()} */
long getDestroyedCount();
Returns:See BaseGenericObjectPool.getDestroyedByEvictorCount()
/** * See {@link GenericObjectPool#getDestroyedByEvictorCount()} * @return See {@link GenericObjectPool#getDestroyedByEvictorCount()} */
long getDestroyedByEvictorCount();
Returns:See BaseGenericObjectPool.getDestroyedByBorrowValidationCount()
/** * See {@link GenericObjectPool#getDestroyedByBorrowValidationCount()} * @return See {@link GenericObjectPool#getDestroyedByBorrowValidationCount()} */
long getDestroyedByBorrowValidationCount();
Returns:See BaseGenericObjectPool.getMeanActiveTimeMillis()
/** * See {@link GenericObjectPool#getMeanActiveTimeMillis()} * @return See {@link GenericObjectPool#getMeanActiveTimeMillis()} */
long getMeanActiveTimeMillis();
Returns:See BaseGenericObjectPool.getMeanIdleTimeMillis()
/** * See {@link GenericObjectPool#getMeanIdleTimeMillis()} * @return See {@link GenericObjectPool#getMeanIdleTimeMillis()} */
long getMeanIdleTimeMillis();
Returns:See BaseGenericObjectPool.getMeanBorrowWaitTimeMillis()
/** * See {@link GenericObjectPool#getMeanBorrowWaitTimeMillis()} * @return See {@link GenericObjectPool#getMeanBorrowWaitTimeMillis()} */
long getMeanBorrowWaitTimeMillis();
Returns:See BaseGenericObjectPool.getMaxBorrowWaitTimeMillis()
/** * See {@link GenericObjectPool#getMaxBorrowWaitTimeMillis()} * @return See {@link GenericObjectPool#getMaxBorrowWaitTimeMillis()} */
long getMaxBorrowWaitTimeMillis();
Returns:See BaseGenericObjectPool.getCreationStackTrace()
/** * See {@link GenericObjectPool#getCreationStackTrace()} * @return See {@link GenericObjectPool#getCreationStackTrace()} */
String getCreationStackTrace();
Returns:See GenericObjectPool.getNumWaiters()
/** * See {@link GenericObjectPool#getNumWaiters()} * @return See {@link GenericObjectPool#getNumWaiters()} */
int getNumWaiters(); // Getters for abandoned object removal configuration
Returns:See GenericObjectPool.isAbandonedConfig()
/** * See {@link GenericObjectPool#isAbandonedConfig()} * @return See {@link GenericObjectPool#isAbandonedConfig()} */
boolean isAbandonedConfig();
Returns:See GenericObjectPool.getLogAbandoned()
/** * See {@link GenericObjectPool#getLogAbandoned()} * @return See {@link GenericObjectPool#getLogAbandoned()} */
boolean getLogAbandoned();
Returns:See GenericObjectPool.getRemoveAbandonedOnBorrow()
/** * See {@link GenericObjectPool#getRemoveAbandonedOnBorrow()} * @return See {@link GenericObjectPool#getRemoveAbandonedOnBorrow()} */
boolean getRemoveAbandonedOnBorrow();
Returns:See GenericObjectPool.getRemoveAbandonedOnMaintenance()
/** * See {@link GenericObjectPool#getRemoveAbandonedOnMaintenance()} * @return See {@link GenericObjectPool#getRemoveAbandonedOnMaintenance()} */
boolean getRemoveAbandonedOnMaintenance();
Returns:See GenericObjectPool.getRemoveAbandonedTimeout()
/** * See {@link GenericObjectPool#getRemoveAbandonedTimeout()} * @return See {@link GenericObjectPool#getRemoveAbandonedTimeout()} */
int getRemoveAbandonedTimeout();
Returns:See GenericObjectPool.getFactoryType()
/** * See {@link GenericObjectPool#getFactoryType()} * @return See {@link GenericObjectPool#getFactoryType()} */
String getFactoryType();
Returns:See GenericObjectPool.listAllObjects()
/** * See {@link GenericObjectPool#listAllObjects()} * @return See {@link GenericObjectPool#listAllObjects()} */
Set<DefaultPooledObjectInfo> listAllObjects(); }