public class InventoryAvailabilityMemoryCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Class name.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
INVENTORY_CACHE_NAME
The inventory availability cache jndi name.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all the object from the cache.
|
InventoryAvailabilityType |
getInventory(java.lang.Object iaiKey)
This method retrieves an InventoryAvailabilityType from the
cache.
|
static InventoryAvailabilityMemoryCache |
instance()
This method gets the singleton instance of
InventoryMemoryCache, which should be initialized.
|
void |
invalidate(java.lang.Object iaiKey)
Invalidates the
InventoryAvailability noun corresponding to the cache key. |
static void |
shutdown()
Call this method when the WC application is being shut down.
|
void |
updateInventory(java.lang.Object iaiKey,
java.lang.Object iatValue)
This method updates the Inventory Cache when getting an update from
InventoryAvailabilityType from the backend DOM system.
|
void |
updateInventory(java.lang.Object iaiKey,
java.lang.Object iatValue,
int priority,
int ttl)
Update the inventory cache entry.
|
void |
updateInventory(java.lang.Object iaiKey,
java.lang.Object iatValue,
int priority,
int ttl,
int sharingPolicy,
java.lang.Object[] dependencyIds)
Update the inventory cache entry.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.String INVENTORY_CACHE_NAME
public static InventoryAvailabilityMemoryCache instance()
public static void shutdown()
public void invalidate(java.lang.Object iaiKey)
InventoryAvailability
noun corresponding to the cache key.iaiKey
- The cache key.public InventoryAvailabilityType getInventory(java.lang.Object iaiKey)
iaiKey
- InventoryAvailabilityIdentifierType type, the key.public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue)
iaiKey
- the key for update.iatValue
- the value for udpate.public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue, int priority, int ttl)
iaiKey
- the key for the update.iatValue
- the value for the update.priority
- the priority of the cache entry item.ttl
- the time to live for the cache entry item.public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue, int priority, int ttl, int sharingPolicy, java.lang.Object[] dependencyIds)
iaiKey
- the key for the update.iatValue
- the value for the update.priority
- the priority of the cache entry item.ttl
- the time to live for the cache entry item.sharingPolicy
- the sharingPolicy for the cache item, the values should be:
EntryInfo.NOT_SHARED, EntryInfo.SHARED_PUSH, and
EntryInfo.SHARED_PUSH_PULLdependencyIds
- an optional set of dependency ids to associate with the cache
entry.public void clear()