Java Garbage Collector will normally remove a local map if it is no longer used. Clustered maps however are not removed in this manner. These maps must be destroyed manually if they are no longer used:
ClusterMapFactory.get().destroyMap(clmap);
Calling this, the map named clmap will be destroyed on each cluster node.
The event handler will catch event when map is destroyed on another cluster node:
eventBus.addHandler(MapDestroyedEventHandler.MapDestroyedEvent.class, new MapDestroyedEventHandler() { @Override public void onMapDestroyed(Map mapX, String type) { } });