Java AtomicInteger resetCounters()

Here you can find the source of resetCounters()

Description

reset Counters

License

LGPL

Declaration

public static void resetCounters() 

Method Source Code

//package com.java2s;
/*/*from  w w  w.j a  v  a  2 s. co m*/
 * Hibernate OGM, Domain model persistence for NoSQL datastores
 *
 * 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.Map;
import java.util.concurrent.ConcurrentHashMap;

import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    private static final Map<String, AtomicInteger> counters = new ConcurrentHashMap<>();

    public static void resetCounters() {
        counters.clear();
    }
}

Related

  1. loadServiceCount(String id)
  2. print2DIntArray(int[][] array)
  3. printResults(Stream> resultPartitionsStream)
  4. reset()
  5. resetCounter()
  6. resetExceptionCount()
  7. setBit(AtomicInteger i, int mask)
  8. setBitByValue(final AtomicInteger ai, final int value)
  9. setBitIfUnsetByIndex(final AtomicInteger ai, final int n)