/** * Add a new entry or update an existing entry. * @param entry The entry. * @return True, if new entry. */ public boolean update(E e, long leasetime) { synchronized(mutex) {return c.update(e, leasetime);} }
public boolean update(E e) { synchronized(mutex) {return c.update(e);} }
/** * Add a new subscription. * @param future The subscription info. */ protected void addSubscribedTo(SubscriptionInfo info) { if(subscribedto==null) { subscribedto = LeaseTimeSet.createLeaseTimeCollection((long)(2.2*timelimit), new ICommand<SubscriptionInfo>() { public void execute(SubscriptionInfo entry) { System.out.println("Remove subscription of: "+entry.getPlatformId()); getRegistry().removeSubregistry(entry.getPlatformId()); } }, new AgentDelayRunner(component), false, null); } subscribedto.update(info); }