Java AtomicInteger reset()

Here you can find the source of reset()

Description

reset

License

Apache License

Declaration

static void reset() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    /** Start value for loader ID. */
    static final int LOADER_ID_START = 3000;
    /** Loader id counter. */
    private static final AtomicInteger loaderId = new AtomicInteger(LOADER_ID_START);

    static void reset() {
        loaderId.set(LOADER_ID_START);//from   w ww  .j a  va  2  s . co  m
    }
}

Related

  1. increase(A a, Map map)
  2. isPropBlocked(String s)
  3. loadServiceCount(String id)
  4. print2DIntArray(int[][] array)
  5. printResults(Stream> resultPartitionsStream)
  6. resetCounter()
  7. resetCounters()
  8. resetExceptionCount()
  9. setBit(AtomicInteger i, int mask)