Package org.hawaiiframework.logging
Class KibanaTxWrapper
java.lang.Object
org.hawaiiframework.logging.KibanaTxWrapper
Helper to start a hawaii transaction, for logging purposes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidWrap the call with a kibana transaction.static <T> TWrap the call with a kibana transaction.
-
Method Details
-
kibanaTx
public static <T> T kibanaTx(String system, String txName, org.hawaiiframework.util.Returnable<T> returnable) Wrap the call with a kibana transaction.- Type Parameters:
T- The return type.- Parameters:
system- The system's name.txName- The call's name.returnable- The actual code to invoke.- Returns:
- The value returned by the
supplier.
-
kibanaTx
public static void kibanaTx(String system, String txName, org.hawaiiframework.util.Invocable invocable) Wrap the call with a kibana transaction.- Parameters:
system- The system's name.txName- The call's name.invocable- The actual code to invoke.
-