Top Description Fields Constructors Methods
org.apache.commons.pool2.impl

public Class NoOpCallStack

extends Object
implements CallStack
Class Inheritance
All Implemented Interfaces
org.apache.commons.pool2.impl.CallStack
Imports
java.io.PrintWriter

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

Modifier and TypeField and Description
public static final CallStack
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private
NoOpCallStack()

Constructs the singleton instance.

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Implements org.apache.commons.pool2.impl.CallStack.clear.

Clears the current stack trace snapshot.

public void
fillInStackTrace()

Implements org.apache.commons.pool2.impl.CallStack.fillInStackTrace.

Takes a snapshot of the current call stack.

public boolean
printStackTrace(final PrintWriter writer)

Implements org.apache.commons.pool2.impl.CallStack.printStackTrace.

Prints the current stack trace if available to a PrintWriter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final CallStack INSTANCE

The singleton instance.

Constructor Detail

NoOpCallStackback to summary
private NoOpCallStack()

Constructs the singleton instance.

Method Detail

clearback to summary
public void clear()

Implements org.apache.commons.pool2.impl.CallStack.clear.

Doc from org.apache.commons.pool2.impl.CallStack.clear.

Clears the current stack trace snapshot. Subsequent calls to printStackTrace(PrintWriter) will be no-ops until another call to fillInStackTrace().

Annotations
@Override
fillInStackTraceback to summary
public void fillInStackTrace()

Implements org.apache.commons.pool2.impl.CallStack.fillInStackTrace.

Doc from org.apache.commons.pool2.impl.CallStack.fillInStackTrace.

Takes a snapshot of the current call stack. Subsequent calls to printStackTrace(PrintWriter) will print out that stack trace until it is cleared.

Annotations
@Override
printStackTraceback to summary
public boolean printStackTrace(final PrintWriter writer)

Implements org.apache.commons.pool2.impl.CallStack.printStackTrace.

Doc from org.apache.commons.pool2.impl.CallStack.printStackTrace.

Prints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful for debugging issues with PooledObject usage in user code.

Annotations
@Override