wrapInternalCacheEntry(ctx, key, cmd, oldEntry, isDelta);
isLoaded.set(null); //not loaded
return oldEntry; //no changes in container
}
MarshalledEntry loaded = internalLoadAndUpdateStats(key, ctx);
if(loaded == null) {
isLoaded.set(Boolean.FALSE); //not loaded
return null; //no changed in container
}
InternalCacheEntry newEntry;
InternalMetadata metadata = loaded.getMetadata();
if (metadata != null) {
Metadata actual = metadata instanceof InternalMetadataImpl ? ((InternalMetadataImpl) metadata).actual() :
metadata;
newEntry = factory.create(loaded.getKey(), loaded.getValue(), actual, metadata.created(), metadata.lifespan(),
metadata.lastUsed(), metadata.maxIdle());
} else {
//metadata is null!
newEntry = factory.create(loaded.getKey(), loaded.getValue(), (Metadata) null);
}
CacheEntry wrappedEntry = wrapInternalCacheEntry(ctx, key, cmd, newEntry, isDelta);
recordLoadedEntry(ctx, key, wrappedEntry, newEntry, cmd);
//afterSuccessfullyLoaded(wrappedEntry);