Java AtomicInteger isPropBlocked(String s)

Here you can find the source of isPropBlocked(String s)

Description

is Prop Blocked

License

Open Source License

Declaration

private static boolean isPropBlocked(String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.ConcurrentHashMap;

import java.util.concurrent.atomic.AtomicInteger;

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

    private static boolean isPropBlocked(String s) {
        AtomicInteger i = updatingProps.get(s);
        if (i == null) {
            return false;
        }/*from ww  w  .j  av a2s  .  co m*/
        return i.get() > 0;
    }
}

Related

  1. getThreadName(String pattern, String name)
  2. getTimeBasedUUID()
  3. getUniqueId()
  4. getUuidAsFourCharacterGroups()
  5. increase(A a, Map map)
  6. loadServiceCount(String id)
  7. print2DIntArray(int[][] array)
  8. printResults(Stream> resultPartitionsStream)
  9. reset()