Class DefaultHttpClientCache

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.AbstractHttpClientCache
com.sap.cloud.sdk.cloudplatform.connectivity.DefaultHttpClientCache
All Implemented Interfaces:
HttpClientCache

public class DefaultHttpClientCache extends AbstractHttpClientCache
Implementation of the HttpClientCache, caching the HttpClients for the amount of time given in the constructor.
  • Constructor Details

    • DefaultHttpClientCache

      public DefaultHttpClientCache(long duration, @Nonnull TimeUnit unit)
      Caches the HttpClient for the given duration after it has been accessed last.
      Parameters:
      duration - The number of time units to store the HttpClients.
      unit - The TimeUnit the duration is given in.
  • Method Details