atomic-factory/src/main/java/org/infinispan/atomic/AtomicObjectFactory.java
/**
    * Remove the object stored at <i>key</i>from the local state.
    * If flag <i>keepPersistent</i> is set, a persistent copy of the current state of the object is also stored in the cache.
    *
    * @param clazz a class object
    * @param key the key to use in order to store the object.
    * @param keepPersistent indicates that a persistent copy is stored in the cache or not.
    */
Remove the object stored at keyfrom the local state.
If flag keepPersistent is set, a persistent copy of the current state of the object is also stored in the cache.

@param clazz a class object
@param key the key to use in order to store the object.
@param keepPersistent indicates that a persistent copy is stored in the cache or not.
Remove the object stored at keyfrom the local state . If flag keepPersistent is set a persistent copy of the current state of the object is also stored in the cache . @param clazz a class object @param key the key to use in order to store the object . @param keepPersistent indicates that a persistent copy is stored in the cache or not .
public void disposeInstanceOf(Class<?> clazz, Object key, boolean keepPersistent)
         throws InvalidCacheUsageException {
      ContainerSignature signature = new ContainerSignature(clazz,key);
      if (log.isDebugEnabled()) log.debugf("Disposing %s",signature.toString());
      Container container;
      synchronized (registeredContainers) {
         container = registeredContainers.get(signature);
         if( container == null )
            return;
         if( ! container.getClazz().equals(clazz) )
            throw new InvalidCacheUsageException("The object is not of the right class.");
         registeredContainers.remove(signature);
      }
      try {
         container.dispose(keepPersistent);
      } catch (Exception e) {
         e.printStackTrace();
         throw new InvalidCacheUsageException("Error while disposing object " + key);
      }
   }
public void disposeInstanceOf ( Class < ? > clazz , Object key , boolean keepPersistent ) throws InvalidCacheUsageException { ContainerSignature signature = new ContainerSignature ( clazz , key ) ; if ( log . isDebugEnabled ( ) ) log . debugf ( "Disposing %s" , signature . toString ( ) ) ; Container container ; synchronized ( registeredContainers ) { container = registeredContainers . get ( signature ) ; if ( container == null ) return ; if ( ! container . getClazz ( ) . equals ( clazz ) ) throw new InvalidCacheUsageException ( "The object is not of the right class." ) ; registeredContainers . remove ( signature ) ; } try { container . dispose ( keepPersistent ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new InvalidCacheUsageException ( "Error while disposing object " + key ) ; } }
Remove the object stored at <i>key</i>from the local state.
Remove the object stored at <i > key< / i > from the local state .