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:
  • Constructor Details

    • SuppressNotificationContext

      public SuppressNotificationContext(String[] messageTypes)
  • Method Details

    • 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
      Throws:
      T extends Throwable
    • getMessageTypes

      public String[] getMessageTypes()