Closed wsky closed 10 years ago
@SuppressWarnings("unchecked") private Map<Object, Entry<AtomicBoolean, Long>> getLocks(Client client) { Map<Object, Entry<AtomicBoolean, Long>> locks = (Map<Object, Entry<AtomicBoolean, Long>>) client.getContext(this.contextKey); if (locks == null) client.setContext(this.contextKey, locks = new HashMap<Object, Map.Entry<AtomicBoolean, Long>>()); return locks; }
not thread safe
not thread safe