Exemplo n.º 1
0
 public void unregisterListener(ProcessStoreListener psl) {
   __log.debug("Unregistering listener " + psl);
   _listeners.remove(psl);
 }
 /** @param r Reservation. */
 public void removeReservation(GridDhtPartitionsReservation r) {
   if (!reservations.remove(r))
     throw new IllegalStateException("Reservation was already removed.");
 }
Exemplo n.º 3
0
 /**
  * Removes the specified element from this set if it is present. More formally, removes an element
  * <tt>e</tt> such that <tt>(o==null&nbsp;?&nbsp;e==null&nbsp;:&nbsp;o.equals(e))</tt>, if this
  * set contains such an element. Returns <tt>true</tt> if this set contained the element (or
  * equivalently, if this set changed as a result of the call). (This set will not contain the
  * element once the call returns.)
  *
  * @param o object to be removed from this set, if present
  * @return <tt>true</tt> if this set contained the specified element
  */
 public boolean remove(Object o) {
   return al.remove(o);
 }