Class CriticalComponentImpl
java.lang.Object
org.apache.activemq.artemis.utils.critical.CriticalComponentImpl
- All Implemented Interfaces:
CriticalComponent
- Direct Known Subclasses:
AbstractJournalStorageManager,QueueImpl,TimedBuffer
This is not abstract as it could be used through aggregations or extensions. This is only good for cases where you
call leave within the same thread as you called enter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckExpiration(long timeout, boolean reset) Check if the component is expired at a given timeout.. on any of its paths.measureCritical(int path)
-
Constructor Details
-
CriticalComponentImpl
-
-
Method Details
-
getCriticalAnalyzer
- Specified by:
getCriticalAnalyzerin interfaceCriticalComponent
-
measureCritical
- Specified by:
measureCriticalin interfaceCriticalComponent
-
checkExpiration
public boolean checkExpiration(long timeout, boolean reset) Description copied from interface:CriticalComponentCheck if the component is expired at a given timeout.. on any of its paths.- Specified by:
checkExpirationin interfaceCriticalComponent- Parameters:
timeout- - the timeout to check if the component is expiredreset- - true to reset the component timer if it is expired- Returns:
- -1 if it's ok, or the number of the path it failed
-