/** * Update the timestamp of e. * @param entry The entry. */ public void touch(K key) { times.touch(key); }
/** * Update the timestamp of e. * @param entry The entry. */ public void touch(E e) { synchronized(mutex) {c.touch(e);} }
/** * Update the timestamp of e. * @param entry The entry. */ public void touch(E e, long leasetime) { synchronized(mutex) {c.touch(e, leasetime);} } }
public V put(K key, V value, long leasetime) { if(map.containsKey(key)) { if(touchonwrite) times.touch(key, leasetime); } else { times.add(key, leasetime); } return map.put(key, value); }
col.touch(44, 1500); Thread.sleep(1000); System.out.print(".");