public class CriticalComponentImpl extends Object implements CriticalComponent
| Constructor and Description |
|---|
CriticalComponentImpl(CriticalAnalyzer analyzer,
int numberOfPaths) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExpiration(long timeout,
boolean reset)
Check if the component is expired at a given timeout..
|
CriticalAnalyzer |
getCriticalAnalyzer() |
CriticalCloseable |
measureCritical(int path) |
public CriticalComponentImpl(CriticalAnalyzer analyzer, int numberOfPaths)
public CriticalAnalyzer getCriticalAnalyzer()
getCriticalAnalyzer in interface CriticalComponentpublic CriticalCloseable measureCritical(int path)
measureCritical in interface CriticalComponentpublic boolean checkExpiration(long timeout,
boolean reset)
CriticalComponentcheckExpiration in interface CriticalComponenttimeout - - the timeout to check if the component is expiredreset - - true to reset the component timer if it is expiredCopyright © 2022 The Apache Software Foundation. All rights reserved.