Class NotificationManagerProperties
java.lang.Object
com.broadleafcommerce.common.messaging.notification.NotificationManagerProperties
@ConfigurationProperties("broadleaf.notification.manager")
public class NotificationManagerProperties
extends Object
Configuration for instances of
NotificationManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The thread pool size used for async handling.int
hashCode()
boolean
Whether calls toNotificationManager.handleAsync(NotificationStateRepository, NotificationStateAware, String)
will actually use async threading.void
setAsyncEnabled
(boolean asyncEnabled) Whether calls toNotificationManager.handleAsync(NotificationStateRepository, NotificationStateAware, String)
will actually use async threading.void
setThreadPoolSize
(int threadPoolSize) The thread pool size used for async handling.toString()
-
Field Details
-
DEFAULT_THREAD_POOL_SIZE
public static final int DEFAULT_THREAD_POOL_SIZE- See Also:
-
-
Constructor Details
-
NotificationManagerProperties
public NotificationManagerProperties()
-
-
Method Details
-
getThreadPoolSize
public int getThreadPoolSize()The thread pool size used for async handling. Default is 10. -
isAsyncEnabled
public boolean isAsyncEnabled()Whether calls toNotificationManager.handleAsync(NotificationStateRepository, NotificationStateAware, String)
will actually use async threading. Can be useful for testing or other special circumstances to disable. -
setThreadPoolSize
public void setThreadPoolSize(int threadPoolSize) The thread pool size used for async handling. Default is 10. -
setAsyncEnabled
public void setAsyncEnabled(boolean asyncEnabled) Whether calls toNotificationManager.handleAsync(NotificationStateRepository, NotificationStateAware, String)
will actually use async threading. Can be useful for testing or other special circumstances to disable. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-