You can create dynamic maps with Java APIs after the data grid has been instantiated. You can dynamically instantiate maps that are based on a set of map templates. You can create your own map templates.
Configure a dynamic map template. For more information, see Configuring dynamic maps.
Session session = og.getSession();
ObjectMap map = session.getMap("templateMap1");
A dynamic
map is created based on the template map in this XML file. In this
example, the map has an evictor configured with a pessimistic lock
strategy.