Java ConcurrentMap fileReaderIncrement(ConcurrentMap readers, Long fileNum)

Here you can find the source of fileReaderIncrement(ConcurrentMap readers, Long fileNum)

Description

file Reader Increment

License

Open Source License

Declaration

public static void fileReaderIncrement(ConcurrentMap<Long, Long> readers, Long fileNum) 

Method Source Code

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

import java.util.concurrent.ConcurrentMap;

public class Main {
    public static void fileReaderIncrement(ConcurrentMap<Long, Long> readers, Long fileNum) {
        readers.compute(fileNum, (key, value) -> value == null ? 1L : value + 1L);
    }/*from ww w .  jav a 2s.  c  o  m*/
}

Related

  1. createConcurrentMap()
  2. createConcurrentMap()
  3. createConcurrentMap(int initial_capacity, float load_factor, int concurrency_level)
  4. extractKeySize(String sslCipherSuite)
  5. fileReaderDecrement(ConcurrentMap readers, Long fileNum)
  6. get(Class clazz)
  7. getCache(String cacheName)
  8. getConcurrentMap(int... size)
  9. getContextPath()