com.ibm.portal.resolver.cache
Interface CachedDataSourceFactory.Value<T>

All Superinterfaces:
Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
All Known Subinterfaces:
CachedDataSourceFactory.UncacheableValue<T>
Enclosing interface:
CachedDataSourceFactory<T>

public static interface CachedDataSourceFactory.Value<T>
extends DataSource

Represents the cache value. The DataSource interface on the value represents the metadata of the data source. It's associated value can be retrieved via the getValue() method. The value has been created as a result of a cache miss via the CachedDataSourceFactory.Callback.createValue(DataSource, boolean, Context) method.


Field Summary
 
Fields inherited from interface com.ibm.portal.resolver.data.DataSource
CONTENT_TYPE_UNKNOWN, CREATION_UNKNOWN, EXPIRATION_UNKNOWN, LAST_MODIFICATION_UNKNOWN, MAX_AGE_INFINITE, MAX_AGE_NONE, ROOT_DATE
 
Fields inherited from interface com.ibm.portal.resolver.data.Addressable
EMPTY_PARAMETERS
 
Method Summary
 void dispose()
          Disposes the value but not necessarily the value object represented by this value
 T getValue()
          Returns the cached values that is associated with the data
 
Methods inherited from interface com.ibm.portal.resolver.data.DataSource
getContentType, getCreated, getExpiration, getLastModified
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 

Method Detail

dispose

void dispose()
Disposes the value but not necessarily the value object represented by this value

Specified by:
dispose in interface Disposable

getValue

T getValue()
Returns the cached values that is associated with the data

Returns:
the value