Skip to content

Commit

Permalink
Deprecate methods related to the old flow control
Browse files Browse the repository at this point in the history
Fixes #59.
  • Loading branch information
michaelklishin committed May 13, 2015
1 parent 7d9eef9 commit 6dc3bc6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/com/rabbitmq/client/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public interface Channel extends ShutdownNotifier {
void close(int closeCode, String closeMessage) throws IOException, TimeoutException;

/**
* Indicates whether the server has asked this client to stop
* sending content-bearing commands (such as basic.publish) by
* issueing a channel.flow{active=false}.
* Deprecated, superseded by TCP back pressure.
* @deprecated
* @see <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>
*/
boolean flowBlocked();

Expand Down Expand Up @@ -130,12 +130,18 @@ public interface Channel extends ShutdownNotifier {

/**
* Add a {@link FlowListener}.
* Deprecated, superseded by TCP back pressure.
* @deprecated
* @see <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>
* @param listener the listener to add
*/
void addFlowListener(FlowListener listener);

/**
* Remove a {@link FlowListener}.
* Deprecated, superseded by TCP back pressure.
* @deprecated
* @see <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>
* @param listener the listener to remove
* @return <code><b>true</b></code> if the listener was found and removed,
* <code><b>false</b></code> otherwise
Expand All @@ -144,6 +150,9 @@ public interface Channel extends ShutdownNotifier {

/**
* Remove all {@link FlowListener}s.
* Deprecated, superseded by TCP back pressure.
* @deprecated
* @see <a href="http://www.rabbitmq.com/alarms.html">Resource-driven alarms</a>
*/
void clearFlowListeners();

Expand Down

0 comments on commit 6dc3bc6

Please sign in to comment.