Class NoOpCallStack
- java.lang.Object
- 
- org.apache.tomcat.dbcp.pool2.impl.NoOpCallStack
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the current stack trace snapshot.voidfillInStackTrace()Takes a snapshot of the current call stack.booleanprintStackTrace(java.io.PrintWriter writer)Prints the current stack trace if available to a PrintWriter.
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final CallStack INSTANCE Singleton instance.
 
- 
 - 
Method Detail- 
clearpublic void clear() Description copied from interface:CallStackClears the current stack trace snapshot. Subsequent calls toCallStack.printStackTrace(PrintWriter)will be no-ops until another call toCallStack.fillInStackTrace().
 - 
fillInStackTracepublic void fillInStackTrace() Description copied from interface:CallStackTakes a snapshot of the current call stack. Subsequent calls toCallStack.printStackTrace(PrintWriter)will print out that stack trace until it is cleared.- Specified by:
- fillInStackTracein interface- CallStack
 
 - 
printStackTracepublic boolean printStackTrace(java.io.PrintWriter writer) Description copied from interface:CallStackPrints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful for debugging issues withPooledObjectusage in user code.- Specified by:
- printStackTracein interface- CallStack
- Parameters:
- writer- a PrintWriter to write the current stack trace to if available
- Returns:
- true if a stack trace was available to print or false if nothing was printed
 
 
- 
 
-