@Override
  public PersistenceSpaceIdentifier<DiskResourceService> getPersistenceSpaceIdentifier(String name, CacheConfiguration<?, ?> config) throws CachePersistenceException {
    if (persistenceService == null) {
      return null;
    }
    boolean persistent = config.getResourcePools().getPoolForResource(ResourceType.Core.DISK).isPersistent();
    while (true) {
      PersistenceSpace persistenceSpace = knownPersistenceSpaces.get(name);
      if (persistenceSpace != null) {
        return persistenceSpace.identifier;
      }
      PersistenceSpace newSpace = createSpace(name, persistent);
      if (newSpace != null) {
        return newSpace.identifier;
      }
    }
  }
@ Override public PersistenceSpaceIdentifier < DiskResourceService > getPersistenceSpaceIdentifier ( String name , CacheConfiguration < ? , ? > config ) throws CachePersistenceException { if ( persistenceService == null ) { return null ; } boolean persistent = config . getResourcePools ( ) . getPoolForResource ( ResourceType . Core . DISK ) . isPersistent ( ) ; while ( true ) { PersistenceSpace persistenceSpace = knownPersistenceSpaces . get ( name ) ; if ( persistenceSpace != null ) { return persistenceSpace . identifier ; } PersistenceSpace newSpace = createSpace ( name , persistent ) ; if ( newSpace != null ) { return newSpace . identifier ; } } }
{@inheritDoc}