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 class
NotificationsConfiguration.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.String
getConnectionString()
Get the connection string.boolean
getEnabled()
Get whether notifications have been enabled.String
getTopicName()
Get the topic/queue name.NotificationsConfiguration.Type
getType()
Get the notification component type.void
set(String name, String value)
An extension point for other configuration values.void
setConnectionString(String connectionString)
Set the connection string.void
setEnabled(boolean enabled)
Enable or disable notifications.void
setTopicName(String topic)
Set the queue/topic name.void
setType(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
-
-