org.apache.sirona.aop
Class AbstractPerformanceInterceptor.ActivationContext
java.lang.Object
org.apache.sirona.aop.AbstractPerformanceInterceptor.ActivationContext
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- AbstractPerformanceInterceptor<T>
protected static class AbstractPerformanceInterceptor.ActivationContext
- extends Object
- implements Serializable
This class contains the activation/deactivation logic.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forceIteration
protected final long forceIteration
threshold
protected final long threshold
thresholdActive
protected final boolean thresholdActive
active
protected volatile boolean active
iteration
protected volatile AtomicInteger iteration
AbstractPerformanceInterceptor.ActivationContext
public AbstractPerformanceInterceptor.ActivationContext(boolean active,
long th,
long it)
AbstractPerformanceInterceptor.ActivationContext
public AbstractPerformanceInterceptor.ActivationContext(boolean active,
String name)
isForcedIteration
public boolean isForcedIteration()
getThreshold
protected long getThreshold()
isThresholdActive
protected boolean isThresholdActive()
isActive
public boolean isActive()
reset
public void reset()
shouldExecute
public boolean shouldExecute()
elapsedTime
public void elapsedTime(long elapsedTime)
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.