Class LightweightBrowserCache

java.lang.Object
org.jboss.resteasy.client.cache.LightweightBrowserCache
All Implemented Interfaces:
BrowserCache

@Deprecated public class LightweightBrowserCache extends Object implements BrowserCache
Deprecated.
Caching in the Resteasy client framework in resteasy-jaxrs is replaced by caching in the JAX-RS 2.0 compliant resteasy-client module.
In-memory BrowserCache. Uses an underlying cache, with ConcurrentMapCache as the default. You specify maximum bytes you want the cache to have. The default is 2Megabytes. If the cache exceeds this amount, it is wiped clean. This rather draconian approach to cache reaping is to avoid synchronization that you would normally have to do in a sophisticated cache.

With high concurrent access, because this is not a sophisticated cache, sometimes a cache entry may be lost. It is consistent though.

Version:
$Revision: 1 $
See Also:
  • Field Details

    • maxBytes

      protected long maxBytes
      Deprecated.
    • internalCache

      protected BrowserCache internalCache
      Deprecated.
    • bytes

      protected AtomicLong bytes
      Deprecated.
  • Constructor Details

    • LightweightBrowserCache

      public LightweightBrowserCache()
      Deprecated.
    • LightweightBrowserCache

      public LightweightBrowserCache(BrowserCache cache)
      Deprecated.
  • Method Details