Package com.fasterxml.storemate.store.lastaccess

Examples of com.fasterxml.storemate.store.lastaccess.LastAccessUpdateMethod


            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here


            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

        } else {
            storageSize = raw.getStorageLength();
            size = raw.getOriginalLength();
        }
        compression = raw.getCompression();
        LastAccessUpdateMethod m = src.getLastAccessUpdateMethod();
        lastAccessMethod = (m == null) ? 0 : m.asByte();
        minTTLSecs = src.getMinTTLSinceAccessSecs();
        this.maxTTLSecs = maxTTLSecs;
       
        isDeleted = src.isDeleted();
    }
View Full Code Here

            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

        } 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();
       
        isDeleted = src.isDeleted();
    }
View Full Code Here

            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

            minTTLSinceAccess = findMinTTLParameter(request, key);
        }
        if (maxTTL == null) {
            maxTTL = findMaxTTLParameter(request, key);
        }
        LastAccessUpdateMethod lastAcc = _findLastAccessUpdateMethod(request, key);
        int minTTLSecs = (minTTLSinceAccess == null) ? findMinTTLDefaultSecs(request, key)
                : (int) (minTTLSinceAccess.getMillis() / 1000);
        int maxTTLSecs = (maxTTL == null) ? findMaxTTLDefaultSecs(request, key)
                : (int) (maxTTL.getMillis() / 1000);

        return _entryConverter.createMetadata(creationTime,
                ((lastAcc == null) ? 0 : lastAcc.asByte()),
                minTTLSecs, maxTTLSecs);
    }
View Full Code Here

        } 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();
       
        isDeleted = src.isDeleted();
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.storemate.store.lastaccess.LastAccessUpdateMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.