public class SimpleCacheProviderImpl extends Object implements ReferenceServiceCacheProvider
Constructor and Description |
---|
SimpleCacheProviderImpl() |
Modifier and Type | Method and Description |
---|---|
Identified |
get(T2Reference id)
Called before an attempt is made to retrieve an item from the backing
store
|
void |
put(Identified i)
Called after an
Identified has been written to the backing store,
either for the first time or after modification. |
public Identified get(T2Reference id)
ReferenceServiceCacheProvider
get
in interface ReferenceServiceCacheProvider
id
- the T2Reference of the item to retrieveT2Reference
, or null
if the cache does not contain that itempublic void put(Identified i)
ReferenceServiceCacheProvider
Identified
has been written to the backing store,
either for the first time or after modification. In our model
ReferenceSet
is the only Identified
that is modifiable,
specifically only by the addition of ExternalReferenceSPI
instances to its reference set.put
in interface ReferenceServiceCacheProvider
i
- the Identified written to the backing storeCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.