Skip to content

Commit 0374452

Browse files
merge heads
2 parents f5e04af + 0ae452c commit 0374452

File tree

9 files changed

+112
-136
lines changed

9 files changed

+112
-136
lines changed

src/com/rabbitmq/client/impl/recovery/RecordedBinding.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ public void setDestination(String destination) {
5252
this.destination = destination;
5353
}
5454

55-
public Object recover() throws IOException {
55+
public void recover() throws IOException {
5656
// Implemented by subclasses
57-
return null;
5857
}
5958

6059
@Override

src/com/rabbitmq/client/impl/recovery/RecordedExchange.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.rabbitmq.client.impl.recovery;
22

3-
import com.rabbitmq.client.AMQP;
4-
53
import java.io.IOException;
64
import java.util.Map;
75

@@ -18,8 +16,8 @@ public RecordedExchange(AutorecoveringChannel channel, String name) {
1816
super(channel, name);
1917
}
2018

21-
public AMQP.Exchange.DeclareOk recover() throws IOException {
22-
return this.channel.getDelegate().exchangeDeclare(this.name, this.type, this.durable, this.autoDelete, this.arguments);
19+
public void recover() throws IOException {
20+
this.channel.getDelegate().exchangeDeclare(this.name, this.type, this.durable, this.autoDelete, this.arguments);
2321
}
2422

2523
public RecordedExchange durable(boolean value) {
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.rabbitmq.client.impl.recovery;
22

3-
import com.rabbitmq.client.AMQP;
4-
53
import java.io.IOException;
64

75
/**
@@ -12,7 +10,7 @@ public RecordedExchangeBinding(AutorecoveringChannel channel) {
1210
super(channel);
1311
}
1412

15-
public AMQP.Exchange.BindOk recover() throws IOException {
16-
return this.channel.getDelegate().exchangeBind(this.source, this.destination, this.routingKey, this.arguments);
13+
public void recover() throws IOException {
14+
this.channel.getDelegate().exchangeBind(this.source, this.destination, this.routingKey, this.arguments);
1715
}
1816
}

src/com/rabbitmq/client/impl/recovery/RecordedQueue.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.rabbitmq.client.impl.recovery;
22

3-
import com.rabbitmq.client.AMQP;
4-
53
import java.io.IOException;
64
import java.util.Map;
75

@@ -34,11 +32,12 @@ public boolean isServerNamed() {
3432
return this.serverNamed;
3533
}
3634

37-
public AMQP.Queue.DeclareOk recover() throws IOException {
38-
AMQP.Queue.DeclareOk ok = this.channel.queueDeclare(this.getNameToUseForRecovery(), this.durable, this.exclusive, this.autoDelete, this.arguments);
39-
this.name = ok.getQueue();
40-
41-
return ok;
35+
public void recover() throws IOException {
36+
this.name = this.channel.queueDeclare(this.getNameToUseForRecovery(),
37+
this.durable,
38+
this.exclusive,
39+
this.autoDelete,
40+
this.arguments).getQueue();
4241
}
4342

4443
public String getNameToUseForRecovery() {
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.rabbitmq.client.impl.recovery;
22

3-
import com.rabbitmq.client.AMQP;
4-
53
import java.io.IOException;
64

75
/**
@@ -12,7 +10,7 @@ public RecordedQueueBinding(AutorecoveringChannel channel) {
1210
super(channel);
1311
}
1412

15-
public AMQP.Queue.BindOk recover() throws IOException {
16-
return this.channel.getDelegate().queueBind(this.getDestination(), this.getSource(), this.routingKey, this.arguments);
13+
public void recover() throws IOException {
14+
this.channel.getDelegate().queueBind(this.getDestination(), this.getSource(), this.routingKey, this.arguments);
1715
}
1816
}

0 commit comments

Comments
 (0)