Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ISynchHash
The
ISynchHash
object has functionality similar to a hash table, but with cluster synchronization and LRU behaviors.Note that the use of this object has performance implications. Before you use
ISynchHash
, consider the performance cost of reloading data compared to the memory usage per JVM. Use cluster synchronization only when a backing store is likely to change and invalidate stored results in a given VM.Operational considerations (from Sun Microsystems) suggest that data read vs. write from a synchronized hash should be in an 80/20 ratio if the synchronization is across multiple machines. Non-synchronized hashes do not have this suggested restriction.
List of Methods
Table 9: List of ISynchHash Methods
Method Summary Clears a hash and synchronizes the cluster. Gets the specified object from hash and performs required data validation/VM synchronization checks as needed. Gets the name of the hash as it is managed. Adds an object to the hash and generates appropriate cluster synchronization methods and least-recently-used behavior. Removes an item from the hash and synchronizes the cluster as needed.
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.