|
Oracle® Content Services Web Services Java API Reference 10g Release 1 (10.1.1) B19047-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The cache management interface.
Method Summary | |
void |
addItem(Item item) Adds an Item to the Cache. |
Item |
getItem(long item, AttributeRequest[] attributes) Gets an Item containing the set of attributes specified. |
NamedValue[] |
getItemInvalidations() Gets the set of Item invalidations for items the session has registered interest for. |
void |
registerItemSetInvalidationListener(ItemSetInvalidationListener listener, java.util.List items) Register the ItemSetInvalidationListener. |
void |
removeItem(long itemId) Removes an Item from the Cache. |
void |
resetItemSetInvalidationListener(ItemSetInvalidationListener listener) Reset the ItemSetInvalidationListener to begin watching for invalidations for the previously specified set of items. |
void |
resetItemSetInvalidationListener(ItemSetInvalidationListener listener, java.util.List items) Reset the ItemSetInvalidationListener to begin watching for invalidations based on the newly specified set of items. |
void |
unregisterItemSetInvalidationListener(ItemSetInvalidationListener listener) Unregister an ItemSetInvalidationListener. |
Method Detail |
public void addItem(Item item) throws FdkException
item
- the item to add to the cache.FdkException
- if the operation fails.public Item getItem(long item, AttributeRequest[] attributes) throws FdkException
An item is returned from the cache if it contains the values for at least the specified atttributes. An Item can be returned that contains values for more attributes than the ones specified.
If the cache does not have such an Item, this manager delegates to CommonManager, and the item returned gets added to the cache.
attributes
- the attributes of interestFdkException
- if the operation fails.public NamedValue[] getItemInvalidations() throws FdkException
Returns the set of invalidations since the last invocation of this method.
FdkException
- if the operation fails.public void registerItemSetInvalidationListener(ItemSetInvalidationListener listener, java.util.List items) throws FdkException
This registers the ItemSetInvalidationListener for the specified set of items.
listener
- the ItemSetInvalidationListener to registeritems
- the items that will be watched for invalidationsFdkException
- if the operation fails.public void removeItem(long itemId) throws FdkException
No action is taken if an Item with the specified ID is not currently present in the item cache, or if one or more InvalidationListeners are registered for the item.
itemId
- the ID of the item to remove from the cache.FdkException
- if the operation fails.public void resetItemSetInvalidationListener(ItemSetInvalidationListener listener) throws FdkException
listener
- the ItemSetInvalidationListener to resetFdkException
- if the operation fails.public void resetItemSetInvalidationListener(ItemSetInvalidationListener listener, java.util.List items) throws FdkException
listener
- the ItemSetInvalidationListener to resetitems
- the items that will be watched for invalidationsFdkException
- if the operation fails.public void unregisterItemSetInvalidationListener(ItemSetInvalidationListener listener) throws FdkException
This should be called this when the ItemSetInvalidationListener is no longer in use, to free up resources that would not otherwise be freed until the FdkSession is disconnected.
listener
- the ItemSetInvalidationListener to resetFdkException
- if the operation fails.
|
Oracle® Content Services Web Services Java API Reference 10g Release 1 (10.1.1) B19047-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |