Skip to content

Commit 38fd70b

Browse files
author
Gustavo Xavier
authored
Merge pull request #2 from quintoandar/add-connection-pool-size
1.0.1 Release
2 parents 408cff8 + 4502197 commit 38fd70b

File tree

11 files changed

+83
-6
lines changed

11 files changed

+83
-6
lines changed
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9f43f2a892182f68de759f0b953c6b98
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7cf87437d0c1741c5dc10674f72aa090fa54f865
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>br.com.quintoandar</groupId>
8+
<artifactId>urlencoder</artifactId>
9+
<version>1.0.1</version>
10+
11+
<dependencies>
12+
<dependency>
13+
<groupId>javax.ws.rs</groupId>
14+
<artifactId>javax.ws.rs-api</artifactId>
15+
<version>${rs-api.version}</version>
16+
</dependency>
17+
<dependency>
18+
<groupId>org.apache.commons</groupId>
19+
<artifactId>commons-lang3</artifactId>
20+
<version>${commons-lang3.version}</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.apache.httpcomponents</groupId>
24+
<artifactId>httpclient</artifactId>
25+
<version>${httpclient.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.jboss.resteasy</groupId>
29+
<artifactId>resteasy-jaxrs</artifactId>
30+
<version>${resteasy-jaxrs.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.jboss.resteasy</groupId>
34+
<artifactId>resteasy-client</artifactId>
35+
<version>${resteasy-client.version}</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>org.projectlombok</groupId>
39+
<artifactId>lombok</artifactId>
40+
<version>${lombok.version}</version>
41+
</dependency>
42+
</dependencies>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<artifactId>maven-deploy-plugin</artifactId>
48+
<version>2.8.1</version>
49+
<configuration>
50+
<altDeploymentRepository>internal.repo::default::file://${internal.repo.path}</altDeploymentRepository>
51+
</configuration>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
56+
<properties>
57+
<rs-api.version>2.1</rs-api.version>
58+
<commons-lang3.version>3.7</commons-lang3.version>
59+
<httpclient.version>4.5.5</httpclient.version>
60+
<resteasy-jaxrs.version>3.1.4.Final</resteasy-jaxrs.version>
61+
<resteasy-client.version>3.1.4.Final</resteasy-client.version>
62+
<lombok.version>1.16.20</lombok.version>
63+
<maven.compiler.source>1.8</maven.compiler.source>
64+
<maven.compiler.target>1.8</maven.compiler.target>
65+
<internal.repo.path>${basedir}/mvn-repo/</internal.repo.path>
66+
</properties>
67+
68+
</project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3255449f3183dcacf04e81d73359f458
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
05862497adb1a870ca75ac7687442f4b9c679bd7

mvn-repo/br/com/quintoandar/urlencoder/maven-metadata.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
<groupId>br.com.quintoandar</groupId>
44
<artifactId>urlencoder</artifactId>
55
<versioning>
6-
<release>1.0.0</release>
6+
<release>1.0.1</release>
77
<versions>
88
<version>1.0.0</version>
9+
<version>1.0.1</version>
910
</versions>
10-
<lastUpdated>20180226134832</lastUpdated>
11+
<lastUpdated>20181122212423</lastUpdated>
1112
</versioning>
1213
</metadata>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
78cdde2bb8a5dfdaa7408bc585f72c06
1+
6ea84ee118e305f8eb5bd1b5db558c33
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c7e4b8690379b4e32e0a4762c649332fddb081d2
1+
c349523b1fe27f20f11abc6c7d17ad1dda83b857

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>br.com.quintoandar</groupId>
88
<artifactId>urlencoder</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.1</version>
1010

1111
<dependencies>
1212
<dependency>

src/main/java/br/com/quintoandar/urlencoder/YourlsApiService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ public class YourlsApiService {
99

1010
@Getter
1111
private YourlsApi instance;
12+
13+
private static final Integer CONNECTION_POOL_SIZE = 20;
1214

1315
public YourlsApiService(String uri) {
1416
this.instance = createService(uri);
1517
}
1618

1719
private YourlsApi createService(String uri) {
18-
ResteasyClient client = new ResteasyClientBuilder().build();
20+
ResteasyClient client = new ResteasyClientBuilder()
21+
.connectionPoolSize(CONNECTION_POOL_SIZE)
22+
.build();
1923
ResteasyWebTarget target = client.target(uri);
2024
return target.proxy(YourlsApi.class);
2125
}

0 commit comments

Comments
 (0)