Skip to content

Commit 8562b03

Browse files
authored
Merge pull request #82 from rabbitmq/rename-overflow-strategy-enum
Rename OverflowStrategy enum
2 parents 0392d4a + 0652bda commit 8562b03

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/com/rabbitmq/client/amqp/Management.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ interface QueueSpecification {
178178
* @see <a href="https://www.rabbitmq.com/docs/maxlength#overflow-behaviour">Overflow
179179
* Behavior</a>
180180
*/
181-
QueueSpecification overflowStrategy(OverFlowStrategy overflow);
181+
QueueSpecification overflowStrategy(OverflowStrategy overflow);
182182

183183
/**
184184
* Set TTL for a queue.
@@ -478,7 +478,7 @@ public String strategy() {
478478
*
479479
* @see <a href="https://www.rabbitmq.com/docs/maxlength#overflow-behaviour">Overflow Behavior</a>
480480
*/
481-
enum OverFlowStrategy {
481+
enum OverflowStrategy {
482482
/** Drop the messages at the head of the queue. The default strategy. */
483483
DROP_HEAD("drop-head"),
484484
/** Discard the most recent published messages. */
@@ -488,7 +488,7 @@ enum OverFlowStrategy {
488488

489489
private final String strategy;
490490

491-
OverFlowStrategy(String strategy) {
491+
OverflowStrategy(String strategy) {
492492
this.strategy = strategy;
493493
}
494494

src/main/java/com/rabbitmq/client/amqp/impl/AmqpQueueSpecification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Management.QueueSpecification overflowStrategy(String overflow) {
9898
}
9999

100100
@Override
101-
public Management.QueueSpecification overflowStrategy(Management.OverFlowStrategy overflow) {
101+
public Management.QueueSpecification overflowStrategy(Management.OverflowStrategy overflow) {
102102
this.arg("x-overflow", overflow.strategy());
103103
return this;
104104
}

src/test/java/com/rabbitmq/client/amqp/impl/AmqpTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ void publishedMessageShouldBeRejectedWhenQueueLimitIsReached(TestInfo info) {
684684
management
685685
.queue(q)
686686
.maxLength(maxLength)
687-
.overflowStrategy(Management.OverFlowStrategy.REJECT_PUBLISH)
687+
.overflowStrategy(Management.OverflowStrategy.REJECT_PUBLISH)
688688
.declare();
689689
CountDownLatch rejectedLatch = new CountDownLatch(1);
690690
Publisher.Callback callback =

0 commit comments

Comments
 (0)