public interface CriticalComponent
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExpiration(long timeout,
boolean reset)
Check if the component is expired at a given timeout..
|
default void |
enterCritical(int path)
please save the time you entered here.
|
default CriticalAnalyzer |
getCriticalAnalyzer() |
default void |
leaveCritical(int path)
please save the time you entered here
Use volatile variables.
|
default CriticalAnalyzer getCriticalAnalyzer()
default void enterCritical(int path)
default void leaveCritical(int path)
boolean checkExpiration(long timeout,
boolean reset)
timeout - - the timeout to check if the component is expiredreset - - true to reset the component timer if it is expiredCopyright © 2020 The Apache Software Foundation. All Rights Reserved.