public void destroy() {
		// Unregister from Hazelcast layer.
		synchronized (getSpaceIDsMutex()) {
			if (this.internalListener != null) {
				this.spaceIDs.removeDMapListener(this.internalListener);
			}
			// Delete the spaces. If this function is called, it
			// means that the spaces seems to have no more participant.
			// The process cannot be done through hazelcast.
			final List<SpaceID> ids = new ArrayList<>(this.spaceIDs.keySet());
			this.spaceIDs.clear();
			for (final SpaceID spaceId : ids) {
				removeLocalSpaceDefinition(spaceId, true);
			}
		}
	}
public void destroy ( ) { synchronized ( getSpaceIDsMutex ( ) ) { if ( this . internalListener != null ) { this . spaceIDs . removeDMapListener ( this . internalListener ) ; } final List < SpaceID > ids = new ArrayList < > ( this . spaceIDs . keySet ( ) ) ; this . spaceIDs . clear ( ) ; for ( final SpaceID spaceId : ids ) { removeLocalSpaceDefinition ( spaceId , true ) ; } } }
Destroy this repository and releaqse all the resources.