Interface ReadCache


  • @Beta
    public interface ReadCache
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String key)
      Checks whether the cache contains a key
      java.io.InputStream read​(java.lang.String key)
      Returns an input stream for the data cached with the key.
    • Method Detail

      • read

        java.io.InputStream read​(java.lang.String key)
        Returns an input stream for the data cached with the key. It's the responsibility of the caller to close the stream.
        Throws:
        java.lang.IllegalArgumentException - if cache doesn't contain key
      • contains

        boolean contains​(java.lang.String key)
        Checks whether the cache contains a key