public interface CallStackStrategy for obtaining and printing the current call stack. This is primarily useful for usage tracking so that different JVMs and configurations can use more efficient strategies for obtaining the current call stack depending on metadata needs.
- See Also:
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
clear()Clears the current stack trace snapshot.
fillInStackTrace()Takes a snapshot of the current call stack.
printStackTrace(java.io.PrintWriter writer)Prints the current stack trace if available to a PrintWriter.
boolean printStackTrace(java.io.PrintWriter writer)Prints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful for debugging issues with
PooledObjectusage in user code.
writer- a PrintWriter to write the current stack trace to if available
- true if a stack trace was available to print or false if nothing was printed