public SyncPullEntry() { }
SyncPullEntry(StoredEntry<?> src)
{
final Storable raw = src.getRaw();
key = src.getKey().asStorableKey();
creationTime = src.getCreationTime();
checksum = raw.getContentHash();
checksumForCompressed = raw.getCompressedHash();
if (src.isDeleted()) {
storageSize = -1L;
size = -1L;
} else {
storageSize = raw.getStorageLength();
size = raw.getOriginalLength();
}
compression = raw.getCompression();
LastAccessUpdateMethod m = src.getLastAccessUpdateMethod();
lastAccessMethod = (m == null) ? 0 : m.asByte();
minTTLSecs = src.getMinTTLSinceAccessSecs();
maxTTLSecs = src.getMaxTTLSecs();