com.ibm.websphere.cache

Class DistributedObjectCache

  1. java.lang.Object
  2. extended bycom.ibm.websphere.cache.DistributedObjectCache
All implemented interfaces:
DistributedMap, DistributedNioMap, java.util.Map

  1. public abstract class DistributedObjectCache
  2. extends java.lang.Object
  3. implements DistributedNioMap, DistributedMap
Abstract class implementing DistributedMap and DistributedNioMap. When doing a JNDI lookup on a DistributedMap or a DistributedNioMap, the actual object type returned from the lookup is DistributedObjectCache. If you absolutly do not know map type to be returned from the JNDI lookup, use the getMapType() to verify the type. Otherwise, you can directly cast to DistributedMap or DistributedNioMap.
Since:
v6.0
See Also:
DistributedMap, DistributedNioMap

Nested Class Summary

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
TYPE_DISTRIBUTED_LOCKING_MAP
Deprecated. TYPE_DISTRIBUTED_LOCKING_MAP is no longer used.
  1. static
  2. int
TYPE_DISTRIBUTED_MAP
The underlying map represented by this DistributedObjectCache is of type DistributedMap.
  1. static
  2. int
TYPE_DISTRIBUTED_NIO_MAP
The underlying map represented by this DistributedObjectCache is of type DistributedNioMap.

Constructor Summary

Constructor and Description
DistributedObjectCache()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. int
getMapType()
Returns the underlying map type for this DistribuedObjectCache.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.websphere.cache.DistributedNioMap
addAlias, addChangeListener, addInvalidationListener, addPreInvalidationListener, clear, containsKey, enableListener, getCacheEntry, invalidate, invalidate, invalidate, isEmpty, put, put, put, putAndGet, putAndGet, releaseLruEntries, removeAlias, removeChangeListener, removeInvalidationListener, removePreInvalidationListener, size
Methods inherited from interface com.ibm.websphere.cache.DistributedMap
addAlias, addChangeListener, addInvalidationListener, containsKey, enableListener, get, getSharingPolicy, invalidate, invalidate, isDRSBootstrapEnabled, isEmpty, keySet, put, put, put, removeAlias, removeChangeListener, removeInvalidationListener, setDRSBootstrap, setPriority, setSharingPolicy, setTimeToLive, size
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values

Field Detail

TYPE_DISTRIBUTED_MAP

  1. public static final int TYPE_DISTRIBUTED_MAP
The underlying map represented by this DistributedObjectCache is of type DistributedMap.
Since:
v6.0
See Also:

TYPE_DISTRIBUTED_LOCKING_MAP

  1. public static final int TYPE_DISTRIBUTED_LOCKING_MAP
Deprecated. TYPE_DISTRIBUTED_LOCKING_MAP is no longer used.
The underlying map represented by this DistributedObjectCache is of type DistributedLockingMap.
Since:
v6.0
See Also:

TYPE_DISTRIBUTED_NIO_MAP

  1. public static final int TYPE_DISTRIBUTED_NIO_MAP
The underlying map represented by this DistributedObjectCache is of type DistributedNioMap.
Since:
v6.0
See Also:

Constructor Detail

DistributedObjectCache

  1. public DistributedObjectCache()

Method Detail

getMapType

  1. public abstract int getMapType( )
Returns the underlying map type for this DistribuedObjectCache.
Returns:
mapType
TYPE_DISTRIBUTED_MAP
TYPE_DISTRIBUTED_NIO_MAP
Since:
v6.0
See Also: