Package com.sleepycat.je.log

Examples of com.sleepycat.je.log.LogItem


    public OutputWireRecord scanForwards(VLSN vlsn, int waitTime)
        throws InterruptedException {

        assert initDone;

        LogItem logItem = null;

        try {
            logItem = vlsnIndex.waitForVLSN(vlsn, waitTime);
        } catch (WaitTimeOutException e) {
            /* This vlsn not yet available */
            return null;
        }

        currentVLSN = vlsn;

        if ((logItem != null) && (!bypassCache)) {

            /* We've found the requested log item in the cache. */
            assert logItem.getHeader().getVLSN().equals(vlsn);
            prevCacheHits++;
            return new OutputWireRecord(logItem);
        }

        /*
 
View Full Code Here


    void put(VLSN vlsn, LogItem logItem) {
        getArray()[(int)vlsn.getSequence() & sizeMask].set(logItem);
    }

    LogItem get(VLSN vlsn) {
        LogItem item =  getArray()[(int)vlsn.getSequence() & sizeMask].get();
        return (item != null) && item.getHeader().getVLSN().equals(vlsn) ?
                item : null;
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.log.LogItem

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.