Class SuppressNotificationContext
java.lang.Object
com.broadleafcommerce.common.messaging.notification.SuppressNotificationContext
Threadlocal describing one or more message types for which notification should be suppressed
during a flow. Interested components (e.g.
DefaultNotificationHandler
) can reference this
context and skip notification logic where applicable.- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSuppressNotificationContext
(String[] messageTypes) SuppressNotificationContext
(String[] messageTypes, boolean compileChangeDetails) -
Method Summary
-
Constructor Details
-
SuppressNotificationContext
-
SuppressNotificationContext
-
-
Method Details
-
get
-
exec
public static <V,T extends Throwable> V exec(org.apache.camel.util.function.ThrowingSupplier<V, T> supplier, boolean compileChangeDetails, String... messageTypes) throws T- Throws:
T extends Throwable
-
exec
public static <V,T extends Throwable> V exec(org.apache.camel.util.function.ThrowingSupplier<V, T> supplier, String... messageTypes) throws T- Throws:
T extends Throwable
-
getMessageTypes
- See Also:
-
isCompileChangeDetails
public boolean isCompileChangeDetails()
-