Package org.trellisldp.dropwizard.config
Class NotificationsConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.NotificationsConfiguration
-
public class NotificationsConfiguration extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationsConfiguration.Type
-
Constructor Summary
Constructors Constructor Description NotificationsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>any()Get other properties.StringgetConnectionString()Get the connection string.booleangetEnabled()Get whether notifications have been enabled.StringgetTopicName()Get the topic/queue name.NotificationsConfiguration.TypegetType()Get the notification component type.voidset(String name, String value)An extension point for other configuration values.voidsetConnectionString(String connectionString)Set the connection string.voidsetEnabled(boolean enabled)Enable or disable notifications.voidsetTopicName(String topic)Set the queue/topic name.voidsetType(NotificationsConfiguration.Type type)Set the notification component type.
-
-
-
Method Detail
-
getEnabled
public boolean getEnabled()
Get whether notifications have been enabled.- Returns:
- true if notifications are enabled; false otherwise
-
setEnabled
public void setEnabled(boolean enabled)
Enable or disable notifications.- Parameters:
enabled- true if notifications are enabled; false otherwise
-
getTopicName
public String getTopicName()
Get the topic/queue name.- Returns:
- the name of the topic/queue
-
setTopicName
public void setTopicName(String topic)
Set the queue/topic name.- Parameters:
topic- the name of the topic/queue
-
getType
public NotificationsConfiguration.Type getType()
Get the notification component type.- Returns:
- the notification component
-
setType
public void setType(NotificationsConfiguration.Type type)
Set the notification component type.- Parameters:
type- the component type
-
getConnectionString
public String getConnectionString()
Get the connection string.- Returns:
- the connection string
-
setConnectionString
public void setConnectionString(String connectionString)
Set the connection string.- Parameters:
connectionString- the connection string
-
set
public void set(String name, String value)
An extension point for other configuration values.- Parameters:
name- the configuration namevalue- the configuration value
-
-