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

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

      
    
Rootfs path

      
    
Size
1529 (1.5 KB)
MD5
01c0d87c7970533d615cdafea90dca07
SHA1
96386e4f02eab806b68aca9821fb3550792a8009
SHA256
2a65927fae47d5dd438b18663693a3ea05f5fdf9f3f977c3a95bf6f266dd7086
SHA512

      
    
SHA1_git
c4ecacab79e13904596148da90d134d74260d567
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
UsageTracking.java | 1.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; /** * This interface may be implemented by an object pool to enable clients (primarily those clients that wrap pools to * provide pools with extended features) to provide additional information to the pool relating to object using allowing * more informed decisions and reporting to be made regarding abandoned objects. * * @param <T> The type of object provided by the pool. * @since 2.0 */ public interface UsageTracking<T> { /** * Called every time a pooled object is used to enable the pool to better track borrowed objects. * * @param pooledObject The object that is being used. */ void use(T pooledObject); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
54.84
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