Package com.helger.phase4.wss
Class WSSSynchronizer
java.lang.Object
com.helger.phase4.wss.WSSSynchronizer
A helper class to run all WSS stuff in a lock.
Note: this class may only be invoked if
WSSConfig.init() and
WSSConfig.cleanUp() is called for every invocation.Note: this class may only be invoked if
AS4Configuration.isWSS4JSynchronizedSecurity() returns
true.- Since:
- 0.11.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,EX extends Exception>
Tcall(com.helger.commons.functional.IThrowingSupplier<T, EX> aSupplier) static voidA wrapper aroundcall(IThrowingSupplier)swallowing the return value
-
Method Details
-
run
A wrapper aroundcall(IThrowingSupplier)swallowing the return value- Parameters:
aRunnable- The runnable to be run. May not benull.
-
call
@Nullable public static <T,EX extends Exception> T call(@Nonnull com.helger.commons.functional.IThrowingSupplier<T, EX> aSupplier) throws EX- Throws:
EX extends Exception
-