Creating dynamic maps with Java APIs

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 predefined set of map templates.

Before you begin

Decide which configuration options you want to use on your dynamic map. For more information, see Dynamic map configuration options.

Procedure

Call the Session.getMap(String) method.
If you pass in a String that matches the regular expresssion of one of the predefined templates, the appropriate map is created.
ObjectMap map2 = sess.getMap("my_simple_data_grid.CT.P");  
ObjectMap map3 = sess.getMap("my_new_map.NONE");
The my_simple_data_grid.CT.P map is a map that uses creation time eviction and pessimistic locking. The my_new_map.NONE map does not have any eviction or locking settings.