Examples of InflyWriteData


Examples of com.taobao.common.store.journal.JournalStore.InflyWriteData

        }
    }


    public byte[] getDataFromInFlyWrites(final BytesKey key) {
        final InflyWriteData inflyWriteData = this.inflyWrites.get(key);
        if (inflyWriteData != null && inflyWriteData.count > 0) {
            return inflyWriteData.data;
        }
        else {
            return null;
View Full Code Here

Examples of com.taobao.common.store.journal.JournalStore.InflyWriteData

        this.enqueueLock.lock();
        try {
            // ��ͬ������inflyWrites�������Ƴ�
            for (final WriteCommand cmd : dataList) {
                if (!cmd.sync && cmd.opItem.op == OpItem.OP_ADD) {
                    final InflyWriteData inflyWriteData = this.inflyWrites.get(cmd.bytesKey);
                    if (inflyWriteData != null) {
                        // decrease reference count
                        inflyWriteData.count--;
                        // remove it if there is no reference
                        if (inflyWriteData.count <= 0) {
View Full Code Here

Examples of com.taobao.common.store.journal.JournalStore.InflyWriteData

                    result = this.newWriteBatch(writeCommand);
                    this.empty.signalAll();
                }
            }
            if (!sync) {
                final InflyWriteData inflyWriteData = this.inflyWrites.get(writeCommand.bytesKey);
                switch (writeCommand.opItem.op) {
                case OpItem.OP_ADD:
                    if (inflyWriteData == null) {
                        this.inflyWrites.put(writeCommand.bytesKey, new InflyWriteData(writeCommand.data));
                    }
                    else {
                        // update and increase reference count;
                        inflyWriteData.data = writeCommand.data;
                        inflyWriteData.count++;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.