Java AtomicInteger getAndResetInvocationCount()

Here you can find the source of getAndResetInvocationCount()

Description

get And Reset Invocation Count

License

LGPL

Declaration

public static int getAndResetInvocationCount() 

Method Source Code


//package com.java2s;
/*// www.j a  v  a 2  s . co m
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */

import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    public static final AtomicInteger COUNTER = new AtomicInteger();

    public static int getAndResetInvocationCount() {
        return COUNTER.getAndSet(0);
    }
}

Related

  1. decrementWheelsCount()
  2. deleteIndexedFields(Set fieldsToDelete, List fields, Map fieldIndexLookupMap)
  3. encodeMap(Map map)
  4. generateUniqueId()
  5. getAllocationFailureCount()
  6. getAndResetInvocationCount()
  7. getCriticalExceptionCount()
  8. getExceptionCountMap()
  9. getFailedMiddlePartNumbers(PartListing partListing)