Java AtomicLong resetURICounter()

Here you can find the source of resetURICounter()

Description

Resets the URI counter used by #getUniqueURIString() .

License

LGPL

Declaration

public static void resetURICounter() 

Method Source Code

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

import java.util.concurrent.atomic.AtomicLong;

public class Main {
    private static AtomicLong uriCounter = new AtomicLong(0);

    /** Resets the URI counter used by {@link #getUniqueURIString()}. */
    public static void resetURICounter() {
        uriCounter.set(0);/* w  ww.j  a  va2  s. c  o m*/
    }
}

Related

  1. max(AtomicLong x, long y)
  2. nanoTime()
  3. printProgress(final AtomicLong value)
  4. randomSeed()
  5. removeCustomTime()
  6. runThread(Runnable r)