org.apache.sirona.aop
Class AbstractPerformanceInterceptor.ActivationContext

java.lang.Object
  extended by 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

Field Summary
protected  boolean active
           
protected  long forceIteration
           
protected  AtomicInteger iteration
           
protected  long threshold
           
protected  boolean thresholdActive
           
 
Constructor Summary
AbstractPerformanceInterceptor.ActivationContext(boolean active, long th, long it)
           
AbstractPerformanceInterceptor.ActivationContext(boolean active, String name)
           
 
Method Summary
 void elapsedTime(long elapsedTime)
           
protected  long getThreshold()
           
 boolean isActive()
           
 boolean isForcedIteration()
           
protected  boolean isThresholdActive()
           
 void reset()
           
 boolean shouldExecute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractPerformanceInterceptor.ActivationContext

public AbstractPerformanceInterceptor.ActivationContext(boolean active,
                                                        long th,
                                                        long it)

AbstractPerformanceInterceptor.ActivationContext

public AbstractPerformanceInterceptor.ActivationContext(boolean active,
                                                        String name)
Method Detail

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.