Examples of decrementCounter()


Examples of br.gov.frameworkdemoiselle.internal.implementation.TransactionInfo.decrementCounter()

  }

  private void complete(final InvocationContext ic) {
    Transaction transaction = getTransactionContext().getCurrentTransaction();
    TransactionInfo transactionInfo = getTransactionInfo();
    transactionInfo.decrementCounter();

    if (transactionInfo.getCounter() == 0 && transaction.isActive()) {

      if (transactionInfo.isOwner()) {
        if (transaction.isMarkedRollback()) {
View Full Code Here

Examples of br.gov.frameworkdemoiselle.internal.implementation.TransactionInfo.decrementCounter()

  }

  private void complete(final InvocationContext ic) {
    Transaction transaction = getTransactionContext().getCurrentTransaction();
    TransactionInfo transactionInfo = getTransactionInfo();
    transactionInfo.decrementCounter();

    if (transactionInfo.getCounter() == 0 && transaction.isActive()) {

      if (transactionInfo.isOwner()) {
        if (transaction.isMarkedRollback()) {
View Full Code Here

Examples of com.comcast.cmb.common.persistence.AbstractDurablePersistence.decrementCounter()

    AbstractDurablePersistence cassandraHandler = DurablePersistenceFactory.getInstance();
   
    long i = cassandraHandler.getCounter(CMBProperties.getInstance().getCNSKeyspace(), "CNSTopicStats", "bla", "foo", CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
   
    while (i > 0) {
      cassandraHandler.decrementCounter(CMBProperties.getInstance().getCNSKeyspace(), "CNSTopicStats", "bla", "foo", 1, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
      i = cassandraHandler.getCounter(CMBProperties.getInstance().getCNSKeyspace(), "CNSTopicStats", "bla", "foo", CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
    }
   
    cassandraHandler.incrementCounter(CMBProperties.getInstance().getCNSKeyspace(), "CNSTopicStats", "bla", "foo", 1, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
    cassandraHandler.incrementCounter(CMBProperties.getInstance().getCNSKeyspace(), "CNSTopicStats", "bla", "foo", 1, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
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.