Package com.mobixess.jodb.core.io

Examples of com.mobixess.jodb.core.io.IOTicket.unlock()


        ioTicket.lock(false);
        long[] offsets;
        try {
            offsets = _base.getForAllObjects(ioTicket);
        } finally {
            ioTicket.unlock();
        }
        ioTicket.close();
        return new SimpleArrayQueryList(offsets,this);
    }
   
View Full Code Here


        IOTicket ioTicket = _base.getIOTicket(true, false);
        ioTicket.lock(false);
        try {
            TransactionUtils.launchObject(this, handle.getObjectEntryOffset(), obj, depth);
        }catch (Exception e) {
            ioTicket.unlock();
        }
    }
   
    public void deactivate(Object obj, int depth) {
        if(depth <=0 || obj == null){
View Full Code Here

                processor.activate(instance, objectDataContainer, session, remainingDepth, delayedActivation);
                dataContainersCache.pushObjectDataContainer(objectDataContainer);//return container to cache
                objectDataContainer = null;
            }
        }finally{
            ioTicket.unlock();
            contextTicketCache.putToCache(ioTicket);
        }
        return instance;
    }
   
View Full Code Here

            indexingAgent = indexingRootAgent.enableIndex(field, context );
           
            _base.applyTransaction(_transactionContainer, _session, writeTicket, indexingRootAgent, this);
           
        }finally {
            writeTicket.unlock();//should be already released in "applyTransaction()", just to play safe
        }
    }
   
    public void setTransactionResolver(ITransactionResolver transactionResolver)
    {
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.