Package javax.cache.integration

This package contains interfaces for integration.

It contains the CacheLoader and CacheWriter interfaces that allow loading from and writing to other systems respectively.

A cache with a registered loader can be configured as a read-through cache, so that access will automatically load missing entries. And similarly a cache with a registered writer can be configured as a write-through cache, so that changes are written through to an underlying system.

In addition a common idiom is to use a loader to initially populate or refresh a cache. For that purpose there is the Cache.loadAll(java.util.Set, boolean, CompletionListener) method.

Since:
1.0
Author:
Greg Luck
Skip navigation links

Copyright © 2017. All rights reserved.