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

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

      
    
Rootfs path

      
    
Size
2263 (2.2 KB)
MD5
42ad943a9119a36641d9b9ec1e01f0eb
SHA1
9c51faa09cd13d819cb9aa26ab5ecec347679748
SHA256
5b24a23bbabd8443b93c9839d7412110dc7b99492d89227cb2e64d744eb0fb86
SHA512

      
    
SHA1_git
1ee369871fda99d772922571bf64a5e81a6a8074
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
CallStack.java | 2.2 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.io.PrintWriter; import org.apache.tomcat.dbcp.pool2.PooledObject; import org.apache.tomcat.dbcp.pool2.UsageTracking; /** * Strategy for obtaining and printing the current call stack. This is primarily useful for * {@linkplain UsageTracking usage tracking} so that different JVMs and configurations can use more efficient strategies * for obtaining the current call stack depending on metadata needs. * * @since 2.4.3 */ public interface CallStack { /** * Clears the current stack trace snapshot. Subsequent calls to {@link #printStackTrace(PrintWriter)} will be * no-ops until another call to {@link #fillInStackTrace()}. */ void clear(); /** * Takes a snapshot of the current call stack. Subsequent calls to {@link #printStackTrace(PrintWriter)} will print * out that stack trace until it is {@linkplain #clear() cleared}. */ void fillInStackTrace(); /** * Prints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful * for debugging issues with {@link PooledObject} usage in user code. * * @param writer a PrintWriter to write the current stack trace to if available * @return true if a stack trace was available to print or false if nothing was printed */ boolean printStackTrace(PrintWriter writer); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
39.8
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