public class InvocationCounter extends Object
This class is thread safe.
Constructor and Description |
---|
InvocationCounter() |
Modifier and Type | Method and Description |
---|---|
Object |
createProxy(Object target)
Create a new proxy.
|
int |
getExceptionCount()
Get the number of exceptions counted by this instance.
|
int |
getInvocationCount()
Get the number of invocations counted by this instance.
|
void |
reset()
Reset all counters to zero.
|
public Object createProxy(Object target)
target
- the target instancepublic int getInvocationCount()
public int getExceptionCount()
public void reset()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.