Package org.activeio.journal

Examples of org.activeio.journal.RecordLocation


    /**
     */
    public void setLastAcknowledgedMessageIdentity(String subscription, MessageIdentity messageIdentity) throws JMSException {

        RecordLocation location = peristenceAdapter.writePacket(destinationName, subscription, messageIdentity, false);       
    synchronized(this) {
        nextMark = location;
        ackedLastAckLocations.put(subscription,messageIdentity);
    }
       
View Full Code Here


       
    }
   
    public RecordLocation checkpoint() throws JMSException {
       
    RecordLocation rc = super.checkpoint();   
    final HashMap cpAckedLastAckLocations;

    // swap out the hashmaps..
    synchronized(this) {
      if( rc==null || (this.nextMark!=null && rc.compareTo(this.nextMark)<0) ) {
        rc = this.nextMark;
      }         
        cpAckedLastAckLocations = this.ackedLastAckLocations;
        this.nextMark=null;
        this.ackedLastAckLocations = new HashMap();
View Full Code Here

TOP

Related Classes of org.activeio.journal.RecordLocation

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.