4040 * @author Werner Keil
4141 */
4242@ SuppressWarnings ("SynchronizationOnLocalVariableOrMethodParameter" )
43- public class HttpConnectionLoaderService implements LoaderService {
43+ public class OkHttpLoaderService implements LoaderService {
4444 /**
4545 * Logger used.
4646 */
47- private static final Logger LOG = Logger .getLogger (HttpConnectionLoaderService .class .getName ());
47+ private static final Logger LOG = Logger .getLogger (OkHttpLoaderService .class .getName ());
4848 /**
4949 * The data resources managed by this instance.
5050 */
@@ -64,7 +64,7 @@ public class HttpConnectionLoaderService implements LoaderService {
6464 */
6565 private final ExecutorService executors = Executors .newCachedThreadPool (DaemonThreadFactory .INSTANCE );
6666
67- private HttpConnectionLoaderServiceFacade defaultLoaderServiceFacade ;
67+ private OkHttpLoaderServiceFacade defaultLoaderServiceFacade ;
6868
6969 /**
7070 * The timer used for schedules.
@@ -74,7 +74,7 @@ public class HttpConnectionLoaderService implements LoaderService {
7474 /**
7575 * Constructor, initializing from config.
7676 */
77- public HttpConnectionLoaderService () {
77+ public OkHttpLoaderService () {
7878 initialize ();
7979 }
8080
@@ -90,7 +90,7 @@ void initialize() {
9090 }
9191 // (re)initialize
9292 LoaderConfigurator configurator = LoaderConfigurator .of (this );
93- defaultLoaderServiceFacade = new HttpConnectionLoaderServiceFacade (timer , listener , resources );
93+ defaultLoaderServiceFacade = new OkHttpLoaderServiceFacade (timer , listener , resources );
9494 configurator .load ();
9595 }
9696
@@ -102,10 +102,10 @@ void initialize() {
102102 private static ResourceCache loadResourceCache () {
103103 try {
104104 return Optional .ofNullable (Bootstrap .getService (ResourceCache .class )).orElseGet (
105- HttpConnectionResourceCache ::new );
105+ OkHttpResourceCache ::new );
106106 } catch (Exception e ) {
107107 LOG .log (Level .SEVERE , "Error loading ResourceCache instance." , e );
108- return new HttpConnectionResourceCache ();
108+ return new OkHttpResourceCache ();
109109 }
110110 }
111111
@@ -115,7 +115,7 @@ private static ResourceCache loadResourceCache() {
115115 * @return the resource cache, not null.
116116 */
117117 static ResourceCache getResourceCache () {
118- return HttpConnectionLoaderService .CACHE ;
118+ return OkHttpLoaderService .CACHE ;
119119 }
120120
121121 /**
0 commit comments