org.modeshape.connector.infinispan
Class InfinispanRepository

java.lang.Object
  extended by org.modeshape.graph.connector.map.MapRepository
      extended by org.modeshape.connector.infinispan.InfinispanRepository

public class InfinispanRepository
extends MapRepository

The repository that uses an Infinispan instance.


Constructor Summary
InfinispanRepository(String sourceName, UUID rootNodeUuid, org.infinispan.manager.CacheManager cacheManager)
           
InfinispanRepository(String sourceName, UUID rootNodeUuid, String defaultWorkspaceName, org.infinispan.manager.CacheManager cacheManager)
           
 
Method Summary
 MapRepositoryTransaction startTransaction(boolean readonly)
          Begin a transaction, hinting whether the transaction will be used only to read the content.
 
Methods inherited from class org.modeshape.graph.connector.map.MapRepository
createWorkspace, createWorkspace, destroyWorkspace, getRootNodeUuid, getSourceName, getWorkspace, getWorkspaceNames
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanRepository

public InfinispanRepository(String sourceName,
                            UUID rootNodeUuid,
                            org.infinispan.manager.CacheManager cacheManager)

InfinispanRepository

public InfinispanRepository(String sourceName,
                            UUID rootNodeUuid,
                            String defaultWorkspaceName,
                            org.infinispan.manager.CacheManager cacheManager)
Method Detail

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.