net.sf.sasl.aop.monitoring.execution.time
Class ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker
java.lang.Object
net.sf.sasl.aop.monitoring.execution.time.ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker
- Enclosing class:
- ThresholdMethodExecutionTimeWarnAspect
protected class ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker
- extends Object
Small helper class for the concurrent synchronization between the warn
and recovery message sending threads.
- Since:
- 0.0.1 (sasl-common-aspect-library)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker
public ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker()
throws InterruptedException
- Throws:
InterruptedException
- Since:
- 0.0.1 (sasl-common-aspect-library)
isSendRecoveryMessage
public boolean isSendRecoveryMessage()
throws InterruptedException
- Blocks until some thread called
setSendRecoveryMessage(boolean)
. Returns if a recovery
message should be send or not.
- Returns:
- true or false.
- Throws:
InterruptedException
- Since:
- 0.0.1 (sasl-common-aspect-library)
setSendRecoveryMessage
public void setSendRecoveryMessage(boolean sendRecoveryMessage)
- Sets whether a recovery message should be send or not. Wakes up the
recovery message sending thread if currently hanged up in
isSendRecoveryMessage()
.
- Parameters:
sendRecoveryMessage
- true or false.- Since:
- 0.0.1 (sasl-common-aspect-library)
Copyright © 2010. All Rights Reserved.