Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMQP-459: Add Channel Limit Option to CCF
JIRA: https://jira.spring.io/browse/AMQP-459 Add configuration such that the `channelCacheSize` can be considered a limit of how many channels can be created and a timeout when requesting a channel. Polishing
- Loading branch information
1 parent
a50c47b
commit 1718335
Showing
5 changed files
with
278 additions
and
13 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
spring-amqp/src/main/java/org/springframework/amqp/AmqpTimeoutException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2015 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.amqp; | ||
|
||
/** | ||
* Exception thrown when some time-bound operation fails to execute in the | ||
* desired time. | ||
* | ||
* @author Gary Russell | ||
* @since 1.4.2 | ||
* | ||
*/ | ||
public class AmqpTimeoutException extends AmqpException { | ||
|
||
private static final long serialVersionUID = -1981629885617675621L; | ||
|
||
public AmqpTimeoutException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public AmqpTimeoutException(String message) { | ||
super(message); | ||
} | ||
|
||
public AmqpTimeoutException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.