Interface AsyncCacheLoader.Callback<V>

    • Method Detail

      • onLoadSuccess

        void onLoadSuccess​(V value)
        Called to provide the loaded value to be stored in the cache.
        Throws:
        IllegalStateException - if the callback was already made
      • onLoadFailure

        void onLoadFailure​(Throwable t)
        Called if a failure happened. The exceptions is propagated to the clients accessing the associated key.
        Throws:
        IllegalStateException - if the callback was already made