Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グアバでは、LoadingCache を使用すると、CacheLoader が同期的に呼び出されます。ただし、私のload()操作には時間がかかりすぎる (~1 秒) 場合があります。時間がかかりすぎる場合 (>200 ミリ秒) にデフォルトのアクションを実行し、値を非同期的にロードしたいと考えています。
load()
これを達成する方法はありますか?または、他に推奨できるアプローチはありますか?