Skip to content

Commit faaca72

Browse files
authored
Merge pull request #6 from wego/service-name
Add serviceName to Factory and SampleApp
2 parents b7e2f6e + bce6445 commit faaca72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/wego/httpcache/samples/SampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static AsyncHttpCacheService getAsyncHttpCacheService() {
2222
injector.getInstance(AsyncHttpCacheServiceFactory.class);
2323

2424
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
25-
return asyncHttpCacheServiceFactory.create(asyncHttpClient, 10000);
25+
return asyncHttpCacheServiceFactory.create("SampleApp", asyncHttpClient, 10000);
2626
}
2727

2828
public static void main(String[] args) throws Exception {

src/main/java/com/wego/httpcache/services/factories/AsyncHttpCacheServiceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
import com.wego.httpcache.services.AsyncHttpCacheService;
55

66
public interface AsyncHttpCacheServiceFactory {
7-
AsyncHttpCacheService create(AsyncHttpClient asyncHttpClient, long ttl);
7+
AsyncHttpCacheService create(String serviceName, AsyncHttpClient asyncHttpClient, long ttl);
88
}

0 commit comments

Comments
 (0)