public class MbGlobalMap
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Returns true if the specified key exists in this map.
|
java.lang.Object |
get(java.lang.Object key)
Gets the value associated with the specified key from this map.
|
java.lang.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(java.lang.String mapName)
Gets a global map of the given name from the global cache within this broker.
|
static MbGlobalMap |
getGlobalMap(java.lang.String mapName,
MbGlobalMapSessionPolicy sessionPolicy)
Gets a global map of the given name from the global cache within this broker.
|
static MbGlobalMap |
getGlobalMap(java.lang.String mapName,
java.lang.String configurableService)
Gets a global map of the given name from an external WebSphere eXtreme Scale grid.
|
java.lang.String |
getGridName()
Get the name of the grid behind this map.
|
java.lang.String |
getMapName()
Get the name of this map.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts the specified key/value pair into this map.
|
void |
putAll(java.util.Map m)
Puts all the entries in the supplied Map into this map.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the key (and associated value) from this map.
|
void |
update(java.lang.Object key,
java.lang.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(java.lang.String mapName) throws MbException
mapName
- Name of the map to be returned from the cacheMbException
public static MbGlobalMap getGlobalMap(java.lang.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(java.lang.String mapName, java.lang.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(java.lang.Object key) throws MbException
key
- The key to look up in this mapMbException
public java.lang.Object get(java.lang.Object key) throws MbException
key
- The key to look up in this mapMbException
public java.lang.Object put(java.lang.Object key, java.lang.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(java.util.Map m) throws MbException
m
- Map to put into this mapMbException
public java.lang.Object remove(java.lang.Object key) throws MbException
key
- Key to remove from this mapMbException
public void update(java.lang.Object key, java.lang.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 java.lang.String getMapName()
public java.lang.String getConfigurableService()
public java.lang.String getGridName()