Class ResponseCache


  • public class ResponseCache
    extends Object
    • Field Detail

      • DEFAULT_RESPONSE_CACHE_SIZE

        public static final int DEFAULT_RESPONSE_CACHE_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResponseCache

        public ResponseCache​(int cacheSize,
                             String requestType)
    • Method Detail

      • getCacheSize

        public int getCacheSize()
      • put

        public void put​(String path,
                        byte[] data,
                        Stat stat)
      • get

        public byte[] get​(String key,
                          Stat stat)
      • isEnabled

        public boolean isEnabled()