Package org.acemq.spring.boot
Class AceMqProperties
java.lang.Object
org.acemq.spring.boot.AceMqProperties
Everything under
acemq.* in an application's configuration.
The shape follows the library's own vocabulary rather than Spring AMQP's, because a
property that is called something different from the method it configures is a property
somebody has to look up twice. acemq.publisher-confirms sets
ConnectionConfig.Builder.withoutPublisherConfirms() when false, and the two are
named the same thing on purpose.
Nothing here has a default that costs money or safety. Confirms are on, TLS
verification is on when TLS is on, and the topology is not applied unless something is
declared. The one opinionated default is the URL: amqp://localhost:5672, so a
developer with a broker in Docker needs no configuration at all.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefaults for everyAceListener, each of which can override them.static classTLS.static classExchanges, queues and bindings the application expects to exist. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTls()getUrl()booleanbooleanvoidsetBlockedTimeout(Duration blockedTimeout) voidsetClientName(String clientName) voidsetConfirmTimeout(Duration confirmTimeout) voidsetConnectionTimeout(Duration connectionTimeout) voidsetEnabled(boolean enabled) voidvoidsetMaxOutstandingPublishes(int maxOutstandingPublishes) voidsetPassword(String password) voidsetPublisherConfirms(boolean publisherConfirms) voidvoidsetUsername(String username) voidsetVirtualHost(String virtualHost)
-
Constructor Details
-
AceMqProperties
public AceMqProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getUrl
-
setUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getVirtualHost
-
setVirtualHost
-
getClientName
-
setClientName
-
getConnectionTimeout
-
setConnectionTimeout
-
getConfirmTimeout
-
setConfirmTimeout
-
getBlockedTimeout
-
setBlockedTimeout
-
isPublisherConfirms
public boolean isPublisherConfirms() -
setPublisherConfirms
public void setPublisherConfirms(boolean publisherConfirms) -
getMaxOutstandingPublishes
public int getMaxOutstandingPublishes() -
setMaxOutstandingPublishes
public void setMaxOutstandingPublishes(int maxOutstandingPublishes) -
getFormat
-
setFormat
-
getTls
-
getTopology
-
getListener
-