public class ActiveMQAdapterConfiguration extends Object implements ActiveMQDatabaseConfiguration
SETTING_KEY_CONNECTOR_USE_EMBEDDED
it will use
the embedded configuration or its own stored the database or the embedded configuration. If no
embedded configuration is used the system properties will have a higher priority as the database
s
This class also holds a callback which is used to indicate a change of configuration (e.g.
switching from embedded to non embedded configuration or by a change of the configuration in the
frontend.)COMMUNOTE_QUEUE_DEFAULT, COMMUNOTE_QUEUE_DEFAULT_REPLY
Constructor and Description |
---|
ActiveMQAdapterConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
bindEmbeddedConfiguration(ActiveMQEmbeddedConfiguration embeddedConfiguration)
If there is a embedded configuration set it
|
String |
getBrokerUrl() |
ActiveMQConfigurationCallback |
getCallback() |
String |
getPassword() |
String |
getUsername() |
boolean |
isActive() |
void |
setCallback(ActiveMQConfigurationCallback callback)
The callback is used to inform someone about the confiugration change
|
void |
unbindEmbeddedConfiguration(ActiveMQEmbeddedConfiguration embeddedConfiguration)
Remove the embedded configuration
|
public void bindEmbeddedConfiguration(ActiveMQEmbeddedConfiguration embeddedConfiguration)
embeddedConfiguration
- the configurationpublic String getBrokerUrl()
getBrokerUrl
in interface ActiveMQConfiguration
public ActiveMQConfigurationCallback getCallback()
public String getPassword()
getPassword
in interface ActiveMQConfiguration
public String getUsername()
getUsername
in interface ActiveMQConfiguration
public boolean isActive()
isActive
in interface ActiveMQConfiguration
public void setCallback(ActiveMQConfigurationCallback callback)
setCallback
in interface ActiveMQDatabaseConfiguration
callback
- the callbackpublic void unbindEmbeddedConfiguration(ActiveMQEmbeddedConfiguration embeddedConfiguration)
embeddedConfiguration
- the configuration to removeCopyright © 2019 Communote team. All rights reserved.