@Configuration
public class ArtemisConfig
extends java.lang.Object
implements org.springframework.boot.autoconfigure.jms.artemis.ArtemisConfigurationCustomizer
| Constructor and Description |
|---|
ArtemisConfig(ApplicationProperties injectedApplicationProperties)
Constructor responsible for our DI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
customize(org.apache.activemq.artemis.core.config.Configuration configuration)
Customize our configuration.
Set the default consumer windows size to 0. Set the maximum disk usage from our property de.griefed.serverpackcreator.spring.artemis.queue.max_disk_usage.Set the address to tasks.background.Set the queue configuration to tasks.background.Set the name to tasks.background.Set the last value key to unique_id.Set the routing type to RoutingType.ANYCAST.Add our queue configuration.. All of this ensures that any message added will be deduplicated and worked on one by one. |
@Autowired public ArtemisConfig(ApplicationProperties injectedApplicationProperties)
injectedApplicationProperties - Instance of ApplicationProperties.public void customize(org.apache.activemq.artemis.core.config.Configuration configuration)
de.griefed.serverpackcreator.spring.artemis.queue.max_disk_usage.tasks.background.tasks.background.tasks.background.unique_id.RoutingType.ANYCAST.customize in interface org.springframework.boot.autoconfigure.jms.artemis.ArtemisConfigurationCustomizerconfiguration - Artemis configuration.