Package com.identityworksllc.iiq.common
Class Metered
- java.lang.Object
-
- com.identityworksllc.iiq.common.Metered
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetered.MeterCallbackCallback interface where no output is requiredstatic interfaceMetered.MeterCallbackWithOutput<T>Callback interface where an output is required
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmeter(String meterName, Metered.MeterCallback callback)Meters the invocation of the callback, without an outputstatic <T> Tmeter(String meterName, Metered.MeterCallbackWithOutput<T> callback)Meters the invocation of the callback, including an output
-
-
-
Method Detail
-
meter
public static <T> T meter(String meterName, Metered.MeterCallbackWithOutput<T> callback) throws sailpoint.tools.GeneralException
Meters the invocation of the callback, including an output- Type Parameters:
T- The output type- Parameters:
meterName- The meter namecallback- The callback to invoke- Returns:
- The output of the callback
- Throws:
sailpoint.tools.GeneralException- on any errors in the callback
-
meter
public static void meter(String meterName, Metered.MeterCallback callback) throws sailpoint.tools.GeneralException
Meters the invocation of the callback, without an output- Parameters:
meterName- The meter namecallback- The callback to invoke- Throws:
sailpoint.tools.GeneralException- on any errors in the callback
-
-