public class MbGlobalMap extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key)
Returns true if the specified key exists in this map.
|
Object |
get(Object key)
Gets the value associated with the specified key from this map.
|
String |
getConfigurableService()
Get the name of the configurable service used by this map.
|
static MbGlobalMap |
getGlobalMap()
Gets the default global map from the global cache within this broker.
|
static MbGlobalMap |
getGlobalMap(String mapName)
Gets a global map of the given name from the global cache within this broker.
|
static MbGlobalMap |
getGlobalMap(String mapName,
MbGlobalMapSessionPolicy sessionPolicy)
Gets a global map of the given name from the global cache within this broker.
|
static MbGlobalMap |
getGlobalMap(String mapName,
String configurableService)
Gets a global map of the given name from an external WebSphere eXtreme Scale grid.
|
String |
getGridName()
Get the name of the grid behind this map.
|
String |
getMapName()
Get the name of this map.
|
Object |
put(Object key,
Object value)
Puts the specified key/value pair into this map.
|
void |
putAll(Map m)
Puts all the entries in the supplied Map into this map.
|
Object |
remove(Object key)
Removes the key (and associated value) from this map.
|
void |
update(Object key,
Object value)
Updates the value associated with the specified key, to the value supplied.
|
public static MbGlobalMap getGlobalMap() throws MbException
MbException
public static MbGlobalMap getGlobalMap(String mapName) throws MbException
mapName
- Name of the map to be returned from the cacheMbException
public static MbGlobalMap getGlobalMap(String mapName, MbGlobalMapSessionPolicy sessionPolicy) throws MbException
mapName
- Name of the map to be returned from the cachesessionPolicy
- A MbGlobalMapSessionPolicy object, containing properties to be overriddenMbException
public static MbGlobalMap getGlobalMap(String mapName, String configurableService) throws MbException
mapName
- Name of the map to be returned from the cacheconfigurableService
- Name of the configurable service that defines how a connection
to the external WebSphere eXtreme Scale grid should be established.MbException
public boolean containsKey(Object key) throws MbException
key
- The key to look up in this mapMbException
public Object get(Object key) throws MbException
key
- The key to look up in this mapMbException
public Object put(Object key, Object value) throws MbException
key
- The key to put into the map. This must be a Java primitive type or a String.value
- The value associated with the key. This must be a Java primitive type or a String.MbException
public void putAll(Map m) throws MbException
m
- Map to put into this mapMbException
public Object remove(Object key) throws MbException
key
- Key to remove from this mapMbException
public void update(Object key, Object value) throws MbException
key
- Key for which the value is to be updated. This must be a Java primitive type or a String.value
- New value for the key. This must be a Java primitive type or a String.MbException
public String getMapName()
public String getConfigurableService()
public String getGridName()