//Entry wasn't loaded from persistence. return null.
return null;
}
//check if the entry was loaded
MarshalledEntry loaded = persistenceManager.loadFromAllStores(key, ctx);
if (getLog().isTraceEnabled()) {
getLog().tracef("Loaded %s for key %s from persistence.", loaded, key);
}
if(loaded == null) {
return Boolean.FALSE;
}
InternalMetadata metadata = loaded.getMetadata();
if (metadata != null && metadata.isExpired(timeService.wallClockTime())) {
return Boolean.FALSE;
}
ice = iceFactory.create(loaded.getKey(), loaded.getValue(), metadata);
CacheEntry wrappedEntry = wrapInternalCacheEntry(ctx, key, cmd, ice, isDelta, true);
recordLoadedEntry(ctx, key, wrappedEntry, ice, cmd, isDelta);
afterSuccessfullyLoaded(wrappedEntry);
return Boolean.TRUE;
} finally {