19 package org.sleuthkit.autopsy.ingest;
21 import java.util.HashMap;
35 public synchronized long get(
long jobId) {
36 return moduleRefCount.get(jobId);
40 long count = moduleRefCount.containsKey(jobId) ? moduleRefCount.get(jobId) : 0;
41 long nextCount = count + 1;
42 moduleRefCount.put(jobId, nextCount);
47 if (moduleRefCount.containsKey(jobId)) {
48 long count = moduleRefCount.get(jobId);
50 moduleRefCount.remove(jobId);
52 moduleRefCount.put(jobId, count);
synchronized long decrementAndGet(long jobId)
synchronized long incrementAndGet(long jobId)
HashMap< Long, Long > moduleRefCount