Skip to content

Commit df2391e

Browse files
author
Simon MacMullen
committed
default to stable
2 parents 986a8bb + 30e2d08 commit df2391e

File tree

257 files changed

+3838
-766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+3838
-766
lines changed

LICENSE-MPL-RabbitMQ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ EXHIBIT A -Mozilla Public License.
447447
The Original Code is RabbitMQ.
448448

449449
The Initial Developer of the Original Code is GoPivotal, Inc.
450-
Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.''
450+
Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.''
451451

452452
[NOTE: The text of this Exhibit A may differ slightly from the text of
453453
the notices in the Source Code files of the Original Code. You should

codegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## The Original Code is RabbitMQ.
1212
##
1313
## The Initial Developer of the Original Code is GoPivotal, Inc.
14-
## Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
##
1616

1717
from __future__ import nested_scopes
@@ -143,7 +143,7 @@ def printFileHeader():
143143
// The Original Code is RabbitMQ.
144144
//
145145
// The Initial Developer of the Original Code is GoPivotal, Inc.
146-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
146+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
147147
//
148148
"""
149149

nexus-upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
# SIGNING_KEY -- the signing key to use
99
# GNUPG_PATH -- the path to the home directory for gnupg
1010

11-
NEXUS_ROOT="http://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION"
11+
NEXUS_ROOT="https://$CREDS@oss.sonatype.org/service/local/staging/deploy/maven2/com/rabbitmq/amqp-client/$VERSION"
1212
unset http_proxy
1313
unset https_proxy
1414
unset no_proxy

src/com/rabbitmq/client/Address.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717

@@ -43,7 +43,7 @@ public Address(String host, int port) {
4343
*/
4444
public Address(String host) {
4545
_host = host;
46-
_port = -1;
46+
_port = ConnectionFactory.USE_DEFAULT_PORT;
4747
}
4848

4949
/**

src/com/rabbitmq/client/AlreadyClosedException.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717

@@ -25,8 +25,12 @@ public class AlreadyClosedException extends ShutdownSignalException {
2525
/** Default for suppressing warnings without version check. */
2626
private static final long serialVersionUID = 1L;
2727

28-
public AlreadyClosedException(String s, Object ref)
28+
public AlreadyClosedException(ShutdownSignalException sse)
2929
{
30-
super(true, true, s, ref);
30+
super(sse.isHardError(),
31+
sse.isInitiatedByApplication(),
32+
sse.getReason(),
33+
sse.getReference(),
34+
(sse.isHardError() ? "connection" : "channel" + " is already closed due to previous "));
3135
}
3236
}

src/com/rabbitmq/client/AuthenticationFailureException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2013-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2013-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717
package com.rabbitmq.client;

src/com/rabbitmq/client/BasicProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717
package com.rabbitmq.client;

src/com/rabbitmq/client/BlockedListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717

src/com/rabbitmq/client/Channel.java

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717
package com.rabbitmq.client;
@@ -26,7 +26,6 @@
2626
import com.rabbitmq.client.AMQP.Tx;
2727
import com.rabbitmq.client.AMQP.Basic;
2828
import com.rabbitmq.client.AMQP.Confirm;
29-
import com.rabbitmq.client.AMQP.Channel.FlowOk;
3029

3130
/**
3231
* Public API: Interface to an AMQ channel. See the <a href="http://www.amqp.org/">spec</a> for details.
@@ -90,17 +89,11 @@ public interface Channel extends ShutdownNotifier {
9089
void close(int closeCode, String closeMessage) throws IOException;
9190

9291
/**
93-
* Set flow on the channel
94-
*
95-
* @param active if true, the server is asked to start sending. If false, the server is asked to stop sending.
96-
* @throws IOException
97-
*/
98-
FlowOk flow(boolean active) throws IOException;
99-
100-
/**
101-
* Return the current Channel.Flow settings.
92+
* Indicates whether the server has asked this client to stop
93+
* sending content-bearing commands (such as basic.publish) by
94+
* issueing a channel.flow{active=false}.
10295
*/
103-
FlowOk getFlow();
96+
boolean flowBlocked();
10497

10598
/**
10699
* Abort this channel with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
@@ -222,11 +215,24 @@ public interface Channel extends ShutdownNotifier {
222215
* @param prefetchCount maximum number of messages that the server
223216
* will deliver, 0 if unlimited
224217
* @param global true if the settings should be applied to the
225-
* entire connection rather than just the current channel
218+
* entire channel rather than each consumer
226219
* @throws java.io.IOException if an error is encountered
227220
*/
228221
void basicQos(int prefetchSize, int prefetchCount, boolean global) throws IOException;
229222

223+
/**
224+
* Request a specific prefetchCount "quality of service" settings
225+
* for this channel.
226+
*
227+
* @see #basicQos(int, int, boolean)
228+
* @param prefetchCount maximum number of messages that the server
229+
* will deliver, 0 if unlimited
230+
* @param global true if the settings should be applied to the
231+
* entire channel rather than each consumer
232+
* @throws java.io.IOException if an error is encountered
233+
*/
234+
void basicQos(int prefetchCount, boolean global) throws IOException;
235+
230236
/**
231237
* Request a specific prefetchCount "quality of service" settings
232238
* for this channel.
@@ -622,6 +628,23 @@ void basicNack(long deliveryTag, boolean multiple, boolean requeue)
622628
*/
623629
String basicConsume(String queue, boolean autoAck, Consumer callback) throws IOException;
624630

631+
/**
632+
* Start a non-nolocal, non-exclusive consumer, with
633+
* a server-generated consumerTag and specified arguments.
634+
* @param queue the name of the queue
635+
* @param autoAck true if the server should consider messages
636+
* acknowledged once delivered; false if the server should expect
637+
* explicit acknowledgements
638+
* @param arguments a set of arguments for the consume
639+
* @param callback an interface to the consumer object
640+
* @return the consumerTag generated by the server
641+
* @throws java.io.IOException if an error is encountered
642+
* @see com.rabbitmq.client.AMQP.Basic.Consume
643+
* @see com.rabbitmq.client.AMQP.Basic.ConsumeOk
644+
* @see #basicConsume(String, boolean, String, boolean, boolean, Map, Consumer)
645+
*/
646+
String basicConsume(String queue, boolean autoAck, Map<String, Object> arguments, Consumer callback) throws IOException;
647+
625648
/**
626649
* Start a non-nolocal, non-exclusive consumer.
627650
* @param queue the name of the queue

src/com/rabbitmq/client/Command.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// The Original Code is RabbitMQ.
1212
//
1313
// The Initial Developer of the Original Code is GoPivotal, Inc.
14-
// Copyright (c) 2007-2013 GoPivotal, Inc. All rights reserved.
14+
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1515
//
1616

1717

0 commit comments

Comments
 (0)