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>
@Nullable Tcall(@NonNull com.helger.base.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
public static <T,EX extends Exception> @Nullable T call(@NonNull com.helger.base.functional.IThrowingSupplier<T, EX> aSupplier) throws EX- Throws:
EX
-