Class ResponseCache


  • public class ResponseCache
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseCache​(int cacheSize, java.lang.String requestType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] get​(java.lang.String key, Stat stat)  
      int getCacheSize()  
      boolean isEnabled()  
      void put​(java.lang.String path, byte[] data, Stat stat)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                             java.lang.String requestType)
    • Method Detail

      • getCacheSize

        public int getCacheSize()
      • put

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

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

        public boolean isEnabled()