public class CriticalMeasure extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static CriticalCloseable |
dummyCloseable |
protected int |
measuring |
protected long |
timeEnter |
| Constructor and Description |
|---|
CriticalMeasure(CriticalComponent component,
int id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExpiration(long timeout,
boolean reset) |
protected void |
enterCritical() |
protected String |
getComponentName() |
static boolean |
isDummy(ArtemisCloseable closeable) |
protected void |
leaveCritical() |
CriticalCloseable |
measure() |
protected static final CriticalCloseable dummyCloseable
protected volatile int measuring
protected volatile long timeEnter
public CriticalMeasure(CriticalComponent component, int id)
public static boolean isDummy(ArtemisCloseable closeable)
public CriticalCloseable measure()
protected void enterCritical()
protected void leaveCritical()
protected String getComponentName()
public boolean checkExpiration(long timeout,
boolean reset)
Copyright © 2022 The Apache Software Foundation. All rights reserved.