Class SuppressNotificationContext
- java.lang.Object
-
- com.broadleafcommerce.common.messaging.notification.SuppressNotificationContext
-
public class SuppressNotificationContext extends Object
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:
SuppressNotification
-
-
Constructor Summary
Constructors Constructor Description SuppressNotificationContext(String[] messageTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,T extends Throwable>
Vexec(org.apache.camel.util.function.ThrowingSupplier<V,T> supplier, String... messageTypes)
static SuppressNotificationContext
get()
String[]
getMessageTypes()
-
-
-
Constructor Detail
-
SuppressNotificationContext
public SuppressNotificationContext(String[] messageTypes)
-
-
Method Detail
-
get
public static SuppressNotificationContext get()
-
exec
public static <V,T extends Throwable> V exec(org.apache.camel.util.function.ThrowingSupplier<V,T> supplier, String... messageTypes) throws T extends Throwable
- Throws:
T extends Throwable
-
getMessageTypes
public String[] getMessageTypes()
-
-