@ThreadSafe public class JdbmCacheLoader2 extends JdbmCacheLoader
JdbmCacheLoader implementation which is better
for storing data under a single node. Speed is improved.
Data is stored using an FQN to Map association, where the depth is prefixed to the FQN:
0/ = NodeData 1/node1 = Node Data 1/node2 = Node Data 2/node2/node3 = Node Data 2/node2/node4 = Node DataBrowse operations lock the entire tree; eventually the JDBM team plans to fix this.
buddyFqnTransformer, cache, regionManager, transactions| Constructor and Description |
|---|
JdbmCacheLoader2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(Fqn name)
Returns whether the given node exists.
|
Map |
get(Fqn name)
Returns a map containing all key-value pairs for the given FQN, or null
if the node is not present.
|
checkNonNull, checkNotOpen, create, dump, dump, getChildrenNames, getConfig, put, put, put, remove, remove, removeData, setCache, setConfig, size, start, stop, toStringcommit, destroy, doMarshall, doUnmarshall, getMarshaller, getNodeDataList, loadEntireState, loadState, loadStateHelper, move, prepare, put, regionAwareMarshall, regionAwareUnmarshall, rollback, setRegionManager, storeEntireState, storeState, storeStateHelperpublic Map get(Fqn name) throws Exception
JdbmCacheLoaderget in interface CacheLoaderget in class JdbmCacheLoadername - the Fqn to search for.Exceptionpublic boolean exists(Fqn name) throws IOException
JdbmCacheLoaderexists in interface CacheLoaderexists in class JdbmCacheLoaderIOExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.