Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
8954fe13
Commit
8954fe13
authored
Aug 24, 2019
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Support additional publisher confirm types"
See gh-17848
parent
8c1c8a27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
RabbitProperties.java
...ngframework/boot/autoconfigure/amqp/RabbitProperties.java
+4
-11
RabbitAutoConfigurationTests.java
...boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java
+1
-0
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java
View file @
8954fe13
...
...
@@ -87,18 +87,13 @@ public class RabbitProperties {
@DurationUnit
(
ChronoUnit
.
SECONDS
)
private
Duration
requestedHeartbeat
;
/**
* Whether to enable publisher confirms.
*/
private
boolean
publisherConfirms
;
/**
* Whether to enable publisher returns.
*/
private
boolean
publisherReturns
;
/**
* T
he t
ype of publisher confirms to use.
* Type of publisher confirms to use.
*/
private
ConfirmType
publisherConfirmType
;
...
...
@@ -280,17 +275,15 @@ public class RabbitProperties {
this
.
requestedHeartbeat
=
requestedHeartbeat
;
}
@DeprecatedConfigurationProperty
(
reason
=
"replaced to support additional confirm types"
,
replacement
=
"spring.rabbitmq.publisher-confirm-type"
)
public
boolean
isPublisherConfirms
()
{
return
this
.
publisherConfirmType
.
equals
(
ConfirmType
.
CORRELATED
);
}
@Deprecated
public
void
setPublisherConfirms
(
boolean
publisherConfirms
)
{
if
(
publisherConfirms
)
{
this
.
publisherConfirmType
=
ConfirmType
.
CORRELATED
;
return
;
}
this
.
publisherConfirmType
=
ConfirmType
.
NONE
;
this
.
publisherConfirmType
=
(
publisherConfirms
)
?
ConfirmType
.
CORRELATED
:
ConfirmType
.
NONE
;
}
public
boolean
isPublisherReturns
()
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java
View file @
8954fe13
...
...
@@ -80,6 +80,7 @@ import static org.mockito.Mockito.verify;
* @author Greg Turnquist
* @author Stephane Nicoll
* @author Gary Russell
* @author HaiTao Zhang
*/
class
RabbitAutoConfigurationTests
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment