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)
public InventoryAvailabilityType getInventory(java.lang.Object iaiKey)
public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue)
public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue, int priority, int ttl)
public void updateInventory(java.lang.Object iaiKey, java.lang.Object iatValue, int priority, int ttl, int sharingPolicy, java.lang.Object[] dependencyIds)
public void clear()