Examples of RecordLocation


Examples of org.apache.activeio.journal.RecordLocation

        final MessageId id = message.getMessageId();
       
        final boolean debug = log.isDebugEnabled();
        message.incrementReferenceCount();
       
        final RecordLocation location = peristenceAdapter.writeCommand(message, message.isResponseRequired());
        if( !context.isInTransaction() ) {
            if( debug )
                log.debug("Journalled message add for: "+id+", at: "+location);
            addMessage(message, location);
        } else {
View Full Code Here

Examples of org.apache.activeio.journal.RecordLocation

        final boolean debug = log.isDebugEnabled();
        JournalQueueAck remove = new JournalQueueAck();
        remove.setDestination(destination);
        remove.setMessageAck(ack);
       
        final RecordLocation location = peristenceAdapter.writeCommand(remove, ack.isResponseRequired());
        if( !context.isInTransaction() ) {
            if( debug )
                log.debug("Journalled message remove for: "+ack.getLastMessageId()+", at: "+location);
            removeMessage(ack, location);
        } else {
View Full Code Here

Examples of org.codehaus.activemq.journal.RecordLocation

                        return;
                    }

                    log.info("Checkpoint started.");
                    Iterator iterator = messageStores.values().iterator();
                    RecordLocation newMark = null;
                    while (iterator.hasNext()) {
                        try {
                            JournalMessageStore ms = (JournalMessageStore) iterator.next();
                            RecordLocation mark = ms.checkpoint();
                            if (mark != null && (newMark == null || newMark.compareTo(mark) < 0)) {
                                newMark = mark;
                            }
                        }
                        catch (Exception e) {
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.