You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2017/05/31 12:39:58 UTC
incubator-juneau git commit: Add note to
RestClient.getRemoteableProxy() about pooled connections.
Repository: incubator-juneau
Updated Branches:
refs/heads/master de8a66b87 -> 13f816fb6
Add note to RestClient.getRemoteableProxy() about pooled connections.
Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/13f816fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/13f816fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/13f816fb
Branch: refs/heads/master
Commit: 13f816fb6b7344b5f8fb54f6e6913048012a39e1
Parents: de8a66b
Author: JamesBognar <ja...@apache.org>
Authored: Wed May 31 08:39:56 2017 -0400
Committer: JamesBognar <ja...@apache.org>
Committed: Wed May 31 08:39:56 2017 -0400
----------------------------------------------------------------------
.../main/java/org/apache/juneau/rest/client/RestClient.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/13f816fb/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
----------------------------------------------------------------------
diff --git a/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java b/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
index f863487..8f26768 100644
--- a/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
+++ b/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
@@ -474,6 +474,12 @@ public class RestClient extends CoreObject {
* .build()
* .getRemoteableProxy(MyInterface3.<jk>class</jk>);
* </p>
+ * <h5 class='section'>Notes:</h5>
+ * <ul>
+ * <li>If you plan on using your proxy in a multi-threaded environment, you'll want to use an underlying
+ * pooling client connection manager. The easiest way to do this is to use the {@link RestClientBuilder#pooled()}
+ * method. If you don't do this, you may end up seeing "Connection still allocated" exceptions.
+ * </ul>
*
* @param interfaceClass The interface to create a proxy for.
* @return The new proxy interface.