getOrLoad
Returns the stored answer for key if one is live and no older than maxAge; otherwise joins the load in flight for key, or starts one with loader.
Return
Result.success of the loader's Lookup; Result.failure of the loader's failure; or Result.failure of HttpFailure.Closed (component "cache") after close.
Parameters
the answer's identity.
how long the load's outcome is stored (used only by the call that starts the load).
the oldest stored answer this call accepts; Duration.INFINITE accepts any live entry; not negative.
produces the outcome: Found/Missing are stored, a failure is not.
Throws
if maxAge is negative.
if the caller is cancelled.
if the loader threw one (the same instance for every waiter).
getOrLoad accepting any live entry (maxAge is Duration.INFINITE).
Return
as the four-argument overload.
Parameters
the answer's identity.
how long the load's outcome is stored.
produces the outcome.
Throws
if the caller is cancelled.
if the loader threw one.