ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/pool2/impl/GenericKeyedObjectPoolMXBean.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/pool2/impl/GenericKeyedObjectPoolMXBean.java
Status
scanned
Type
file
Name
GenericKeyedObjectPoolMXBean.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
9758 (9.5 KB)
MD5
1bdcd66fdd74ef533369f0377ad7a7f0
SHA1
476aaa52074baff584b5cbf8692e37b730841f5f
SHA256
cd67b51b479ec7e20870f61dea90f7c60d97dc1ee46350dd5076d1e509d51658
SHA512

      
    
SHA1_git
34b534edb0ab84baf538f76babafb4bc4bbd0b37
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
GenericKeyedObjectPoolMXBean.java | 9.5 KB |

/* * 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 * * https://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.tomcat.dbcp.pool2.impl; import java.util.List; import java.util.Map; /** * Defines the methods that will be made available via JMX. * <h2>Note</h2> * <p> * 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. * </p> * * @param <K> The type of keys maintained by the pool. * @since 2.0 */ public interface GenericKeyedObjectPoolMXBean<K> { /** * See {@link GenericKeyedObjectPool#getBlockWhenExhausted()}. * * @return See {@link GenericKeyedObjectPool#getBlockWhenExhausted()}. */ boolean getBlockWhenExhausted(); /** * See {@link GenericKeyedObjectPool#getBorrowedCount()}. * * @return See {@link GenericKeyedObjectPool#getBorrowedCount()}. */ long getBorrowedCount(); /** * See {@link GenericKeyedObjectPool#getCreatedCount()}. * * @return See {@link GenericKeyedObjectPool#getCreatedCount()}. */ long getCreatedCount(); /** * See {@link GenericKeyedObjectPool#getCreationStackTrace()}. * * @return See {@link GenericKeyedObjectPool#getCreationStackTrace()}. */ String getCreationStackTrace(); /** * See {@link GenericKeyedObjectPool#getDestroyedByBorrowValidationCount()}. * * @return See {@link GenericKeyedObjectPool#getDestroyedByBorrowValidationCount()}. */ long getDestroyedByBorrowValidationCount(); /** * See {@link GenericKeyedObjectPool#getDestroyedByEvictorCount()}. * * @return See {@link GenericKeyedObjectPool#getDestroyedByEvictorCount()}. */ long getDestroyedByEvictorCount(); /** * See {@link GenericKeyedObjectPool#getDestroyedCount()}. * * @return See {@link GenericKeyedObjectPool#getDestroyedCount()}. */ long getDestroyedCount(); /** * See {@link GenericKeyedObjectPool#getFairness()}. * * @return See {@link GenericKeyedObjectPool#getFairness()}. */ boolean getFairness(); /** * See {@link GenericKeyedObjectPool#getLifo()}. * * @return See {@link GenericKeyedObjectPool#getLifo()}. */ boolean getLifo(); /** * See {@link GenericKeyedObjectPool#getLogAbandoned()}. * * @return See {@link GenericKeyedObjectPool#getLogAbandoned()}. * @since 2.10.0 */ default boolean getLogAbandoned() { return false; } /** * See {@link GenericKeyedObjectPool#getMaxBorrowWaitTimeMillis()}. * * @return See {@link GenericKeyedObjectPool#getMaxBorrowWaitTimeMillis()}. */ @SuppressWarnings("javadoc") long getMaxBorrowWaitTimeMillis(); /** * See {@link GenericKeyedObjectPool#getMaxIdlePerKey()}. * * @return See {@link GenericKeyedObjectPool#getMaxIdlePerKey()}. */ int getMaxIdlePerKey(); /** * See {@link GenericKeyedObjectPool#getMaxTotal()}. * * @return See {@link GenericKeyedObjectPool#getMaxTotal()}. */ int getMaxTotal(); /** * See {@link GenericKeyedObjectPool#getMaxTotalPerKey()}. * * @return See {@link GenericKeyedObjectPool#getMaxTotalPerKey()}. */ int getMaxTotalPerKey(); /** * See {@link GenericKeyedObjectPool#getMaxWaitDuration()}. * * @return See {@link GenericKeyedObjectPool#getMaxWaitDuration()}. */ long getMaxWaitMillis(); /** * See {@link GenericKeyedObjectPool#getMeanActiveTimeMillis()}. * * @return See {@link GenericKeyedObjectPool#getMeanActiveTimeMillis()}. */ @SuppressWarnings("javadoc") long getMeanActiveTimeMillis(); /** * See {@link GenericKeyedObjectPool#getMaxBorrowWaitTimeMillis()}. * * @return See {@link GenericKeyedObjectPool#getMaxBorrowWaitTimeMillis()}. */ @SuppressWarnings("javadoc") long getMeanBorrowWaitTimeMillis(); /** * See {@link GenericKeyedObjectPool#getMeanIdleTimeMillis()}. * * @return See {@link GenericKeyedObjectPool#getMeanIdleTimeMillis()}. */ @SuppressWarnings("javadoc") long getMeanIdleTimeMillis(); /** * See {@link GenericKeyedObjectPool#getMinEvictableIdleDuration()}. * * @return See {@link GenericKeyedObjectPool#getMinEvictableIdleDuration()}. */ long getMinEvictableIdleTimeMillis(); // Expose getters for monitoring attributes /** * See {@link GenericKeyedObjectPool#getMinIdlePerKey()}. * * @return See {@link GenericKeyedObjectPool#getMinIdlePerKey()}. */ int getMinIdlePerKey(); /** * See {@link GenericKeyedObjectPool#getNumActive()}. * * @return See {@link GenericKeyedObjectPool#getNumActive()}. */ int getNumActive(); /** * See {@link GenericKeyedObjectPool#getNumActivePerKey()}. * * @return See {@link GenericKeyedObjectPool#getNumActivePerKey()}. */ Map<String, Integer> getNumActivePerKey(); /** * See {@link GenericKeyedObjectPool#getNumIdle()}. * * @return See {@link GenericKeyedObjectPool#getNumIdle()}. */ int getNumIdle(); /** * See {@link GenericKeyedObjectPool#getNumTestsPerEvictionRun()}. * * @return See {@link GenericKeyedObjectPool#getNumTestsPerEvictionRun()}. */ int getNumTestsPerEvictionRun(); /** * See {@link GenericKeyedObjectPool#getNumWaiters()}. * * @return See {@link GenericKeyedObjectPool#getNumWaiters()}. */ int getNumWaiters(); /** * See {@link GenericKeyedObjectPool#getNumWaitersByKey()}. * * @return See {@link GenericKeyedObjectPool#getNumWaitersByKey()}. */ Map<String, Integer> getNumWaitersByKey(); /** * See {@link GenericKeyedObjectPool#getRemoveAbandonedOnBorrow()}. * * @return See {@link GenericKeyedObjectPool#getRemoveAbandonedOnBorrow()}. * @since 2.10.0 */ default boolean getRemoveAbandonedOnBorrow() { return false; } /** * See {@link GenericKeyedObjectPool#getRemoveAbandonedOnMaintenance()}. * * @return See {@link GenericKeyedObjectPool#getRemoveAbandonedOnMaintenance()}. * @since 2.10.0 */ default boolean getRemoveAbandonedOnMaintenance() { return false; } /** * See {@link GenericKeyedObjectPool#getRemoveAbandonedTimeoutDuration()}. * * @return See {@link GenericKeyedObjectPool#getRemoveAbandonedTimeoutDuration()}. * @since 2.10.0 */ default int getRemoveAbandonedTimeout() { return 0; } /** * See {@link GenericKeyedObjectPool#getReturnedCount()}. * * @return See {@link GenericKeyedObjectPool#getReturnedCount()}. */ long getReturnedCount(); /** * See {@link GenericKeyedObjectPool#getTestOnBorrow()}. * * @return See {@link GenericKeyedObjectPool#getTestOnBorrow()}. */ boolean getTestOnBorrow(); /** * See {@link GenericKeyedObjectPool#getTestOnCreate()}. * * @return See {@link GenericKeyedObjectPool#getTestOnCreate()}. * @since 2.2 */ boolean getTestOnCreate(); /** * See {@link GenericKeyedObjectPool#getTestOnReturn()}. * * @return See {@link GenericKeyedObjectPool#getTestOnReturn()}. */ boolean getTestOnReturn(); /** * See {@link GenericKeyedObjectPool#getTestWhileIdle()}. * * @return See {@link GenericKeyedObjectPool#getTestWhileIdle()}. */ boolean getTestWhileIdle(); /** * See {@link GenericKeyedObjectPool#getDurationBetweenEvictionRuns} * * @return See {@link GenericKeyedObjectPool#getDurationBetweenEvictionRuns()}. */ long getTimeBetweenEvictionRunsMillis(); /** * See {@link GenericKeyedObjectPool#isAbandonedConfig()}. * * @return See {@link GenericKeyedObjectPool#isAbandonedConfig()}. * @since 2.10.0 */ default boolean isAbandonedConfig() { return false; } /** * See {@link GenericKeyedObjectPool#isClosed()}. * * @return See {@link GenericKeyedObjectPool#isClosed()}. */ boolean isClosed(); /** * See {@link GenericKeyedObjectPool#listAllObjects()}. * * @return See {@link GenericKeyedObjectPool#listAllObjects()}. */ Map<String, List<DefaultPooledObjectInfo>> listAllObjects(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
17.0
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-eb6b5ae0-4f88-4e9b-d67c-c6c8e733b1cd apache-2.0 Apache-2.0
URL Start line End line
https://www.apache.org/licenses/LICENSE-2.0 9 9