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) Creates a newSuppressNotificationContextinstance.SuppressNotificationContext(String[] messageTypes, boolean compileChangeDetails) Creates a newSuppressNotificationContextinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V,T extends Throwable>
Vexec(org.apache.camel.util.function.ThrowingSupplier<V, T> supplier, boolean compileChangeDetails, String... messageTypes) static <V,T extends Throwable>
Vstatic SuppressNotificationContextget()String[]booleanstatic booleanisSuppressed(String messageType)
-
Constructor Details
-
SuppressNotificationContext
Creates a newSuppressNotificationContextinstance.- Parameters:
messageTypes-compileChangeDetails-- See Also:
-
SuppressNotificationContext
Creates a newSuppressNotificationContextinstance.- Parameters:
messageTypes-- See Also:
-
-
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
-
isSuppressed
-
getMessageTypes
- See Also:
-
isCompileChangeDetails
public boolean isCompileChangeDetails()
-