Package org.apache.commons.pool2.impl
Class NoOpCallStack
java.lang.Object
org.apache.commons.pool2.impl.NoOpCallStack
- All Implemented Interfaces:
CallStack
CallStack strategy using no-op implementations of all functionality. Can be used by default when abandoned object
logging is disabled.
- Since:
- 2.5
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the current stack trace snapshot.voidTakes a snapshot of the current call stack.booleanprintStackTrace(PrintWriter writer) Prints the current stack trace if available to a PrintWriter.
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Method Details
-
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(). -
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 interfaceCallStack
-
printStackTrace
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 interfaceCallStack- 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
-