Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.service.sync;
 
Helper class we used as an intermediary for per-entry metadata chunk and raw BDB-persisted entry.
public class SyncPullEntry
    // External key for accessing the entry
    public StorableKey key;
    public long creationTime;
    public int minTTLSecsmaxTTLSecs;
    public long sizestorageSize;
    public int checksumchecksumForCompressed;
    
    public Compression compression;
    public boolean isDeleted;
    public byte lastAccessMethod;
    public SyncPullEntry() { }
    SyncPullEntry(StoredEntry<?> src)
    {
        final Storable raw = src.getRaw();
         = src.getKey().asStorableKey();
         = src.getCreationTime();
         = raw.getContentHash();
         = raw.getCompressedHash();
        
        if (src.isDeleted()) {
             = -1L;
             = -1L;
        } else {
             = raw.getStorageLength();
             = raw.getOriginalLength();
        }
         = raw.getCompression();
         = (m == null) ? 0 : m.asByte();
         = src.getMinTTLSinceAccessSecs();
         = src.getMaxTTLSecs();
        
         = src.isDeleted();
    }
New to GrepCode? Check out our FAQ X