Skip to content

Commit 28029a0

Browse files
author
Rob Harrop
committed
Merge bug23682 with default
2 parents 293c683 + 0cfd8a1 commit 28029a0

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

src/com/rabbitmq/client/ReturnListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @see Channel#basicPublish
2727
*/
2828
public interface ReturnListener {
29-
void handleBasicReturn(int replyCode,
29+
void handleReturn(int replyCode,
3030
String replyText,
3131
String exchange,
3232
String routingKey,

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void releaseChannelNumber() {
279279
if (l != null) {
280280
Basic.Return basicReturn = (Basic.Return) method;
281281
try {
282-
l.handleBasicReturn(basicReturn.replyCode,
282+
l.handleReturn(basicReturn.replyCode,
283283
basicReturn.replyText,
284284
basicReturn.exchange,
285285
basicReturn.routingKey,

src/com/rabbitmq/client/impl/DefaultExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void handleUnexpectedConnectionDriverException(Connection conn, Throwable
3434
}
3535

3636
public void handleReturnListenerException(Channel channel, Throwable exception) {
37-
handleChannelKiller(channel, exception, "ReturnListener.handleBasicReturn");
37+
handleChannelKiller(channel, exception, "ReturnListener.handleReturn");
3838
}
3939

4040
public void handleFlowListenerException(Channel channel, Throwable exception) {

src/com/rabbitmq/client/impl/ExceptionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public interface ExceptionHandler {
3636
/**
3737
* Perform any required exception processing for the situation
3838
* when the driver thread for the connection has called a
39-
* ReturnListener's handleBasicReturn method, and that method has
39+
* ReturnListener's handleReturn method, and that method has
4040
* thrown an exception.
4141
* @param channel the ChannelN that held the ReturnListener
42-
* @param exception the exception thrown by ReturnListener.handleBasicReturn
42+
* @param exception the exception thrown by ReturnListener.handleReturn
4343
*/
4444
void handleReturnListenerException(Channel channel, Throwable exception);
4545

test/src/com/rabbitmq/client/test/functional/AlternateExchange.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ private static boolean[] expected(String key) {
5858
@Override protected void setUp() throws IOException {
5959
super.setUp();
6060
channel.setReturnListener(new ReturnListener() {
61-
public void handleBasicReturn(int replyCode,
62-
String replyText,
63-
String exchange,
64-
String routingKey,
65-
AMQP.BasicProperties properties,
66-
byte[] body)
61+
public void handleReturn(int replyCode,
62+
String replyText,
63+
String exchange,
64+
String routingKey,
65+
AMQP.BasicProperties properties,
66+
byte[] body)
6767
throws IOException {
6868
gotReturn.set(true);
6969
}

test/src/com/rabbitmq/client/test/performance/ScalabilityTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ private float timeRouting(Channel channel, String[] routingKeys)
285285
boolean immdediate = true;
286286
final CountDownLatch latch = new CountDownLatch(params.messageCount);
287287
channel.setReturnListener(new ReturnListener() {
288-
public void handleBasicReturn(int replyCode, String replyText,
289-
String exchange, String routingKey,
290-
AMQP.BasicProperties properties, byte[] body) throws IOException {
288+
public void handleReturn(int replyCode, String replyText,
289+
String exchange, String routingKey,
290+
AMQP.BasicProperties properties, byte[] body) throws IOException {
291291
latch.countDown();
292292
}
293293
});

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ public Producer(Channel channel, String exchangeName, String id,
265265
this.confirm = confirm;
266266
}
267267

268-
public synchronized void handleBasicReturn(int replyCode,
269-
String replyText,
270-
String exchange,
271-
String routingKey,
272-
AMQP.BasicProperties properties,
273-
byte[] body)
268+
public synchronized void handleReturn(int replyCode,
269+
String replyText,
270+
String exchange,
271+
String routingKey,
272+
AMQP.BasicProperties properties,
273+
byte[] body)
274274
throws IOException {
275275
returnCount++;
276276
}

test/src/com/rabbitmq/examples/TestMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void run() throws IOException {
231231
_ch1 = createChannel();
232232

233233
_ch1.setReturnListener(new ReturnListener() {
234-
public void handleBasicReturn(int replyCode, String replyText, String exchange, String routingKey, AMQP.BasicProperties properties, byte[] body)
234+
public void handleReturn(int replyCode, String replyText, String exchange, String routingKey, AMQP.BasicProperties properties, byte[] body)
235235
throws IOException {
236236
Method method = new AMQImpl.Basic.Return(replyCode, replyText, exchange, routingKey);
237237
log("Handling return with body " + new String(body));

0 commit comments

Comments
 (0)