org.jboss.dna.connector.jbosscache
Class JBossCacheRepository
java.lang.Object
org.jboss.dna.graph.connector.map.MapRepository
org.jboss.dna.connector.jbosscache.JBossCacheRepository
public class JBossCacheRepository
- extends MapRepository
A repository implementation that uses JBoss Cache.
JBossCacheRepository
public JBossCacheRepository(String sourceName,
UUID rootNodeUuid,
org.jboss.cache.Cache<UUID,MapNode> cache)
JBossCacheRepository
public JBossCacheRepository(String sourceName,
UUID rootNodeUuid,
String defaultWorkspaceName,
org.jboss.cache.Cache<UUID,MapNode> cache)
startTransaction
public MapRepositoryTransaction startTransaction(boolean readonly)
- Begin a transaction, hinting whether the transaction will be used only to read the content. If this is called, then the
transaction must be either
committed
or
rolled back
.
- Specified by:
startTransaction
in class MapRepository
- Parameters:
readonly
- true if the transaction will not modify any content, or false if changes are to be made
- Returns:
- the transaction; never null
- See Also:
MapRepository.startTransaction(boolean)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.