congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InfinispanRegionFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
InfinispanRegionFactory
in
org.infinispan.hibernate.cache.v51

Best Java code snippets using org.infinispan.hibernate.cache.v51.InfinispanRegionFactory (Showing top 20 results out of 315)

origin: wildfly/wildfly

  @Override
  public void start(SessionFactoryOptions settings, Properties properties) throws CacheException {
    Logger.LOGGER.deprecatedRegionFactory(this.getClass().getName(), this.getClass().getSuperclass().getSuperclass().getName(), SHARED, this.shared);
    properties.setProperty(SHARED, this.shared);
    super.start(settings, properties);
  }
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Building collection cache region [" + regionName + "]" );
  }
  final AdvancedCache cache = getCache( regionName, DataType.COLLECTION, metadata);
  final CollectionRegion region = new CollectionRegionImpl(cache, regionName, transactionManager, metadata, this, getCacheKeysFactory());
 startRegion((BaseRegion) region);
  return region;
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public void start(SessionFactoryOptions settings, Properties properties) throws CacheException {
  cacheManagerName = properties.getProperty(DualNodeTest.NODE_ID_PROP);
  EmbeddedCacheManager existing = ClusterAware.getCacheManager(cacheManagerName);
  locallyAdded = (existing == null);
  if (locallyAdded) {
    delegate.start(settings, properties);
    ClusterAware.addCacheManager(cacheManagerName, delegate.getCacheManager());
  } else {
    delegate.setCacheManager(existing);
  }
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Building query results cache region [" + regionName + "]" );
  }
  final AdvancedCache cache = getCache( regionName, DataType.QUERY, null);
  final QueryResultsRegion region = new QueryResultsRegionImpl(cache, regionName, transactionManager, this);
 startRegion((BaseRegion) region);
  return region;
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public long nextTimestamp() {
  return factory.nextTimestamp();
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public Configuration getPendingPutsCacheConfiguration() {
 return delegate.getPendingPutsCacheConfiguration();
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
protected AdvancedCache getCache(String regionName, DataType type, CacheDataDescription metadata) {
 AdvancedCache cache = super.getCache(regionName, type, metadata);
 return wrapCache == null ? cache : wrapCache.apply(cache);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public InfinispanBaseRegion buildTimestampsRegion(String regionName) {
 String prefix = delegate.getSettings().getCacheRegionPrefix();
 if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName;
 return (InfinispanBaseRegion) delegate.buildTimestampsRegion(regionName, null);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public InfinispanBaseRegion buildQueryResultsRegion(String regionName) {
 String prefix = delegate.getSettings().getCacheRegionPrefix();
 if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName;
 return (InfinispanBaseRegion) delegate.buildQueryResultsRegion(regionName, null);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public InfinispanBaseRegion buildCollectionRegion(String regionName, AccessType accessType) {
 String prefix = delegate.getSettings().getCacheRegionPrefix();
 if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName;
 return (InfinispanBaseRegion) delegate.buildCollectionRegion(regionName, null, MUTABLE_VERSIONED);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public InfinispanBaseRegion buildEntityRegion(String regionName, AccessType accessType) {
 String prefix = delegate.getSettings().getCacheRegionPrefix();
 if (prefix != null && !prefix.isEmpty()) regionName = prefix + '.' + regionName;
 return (InfinispanBaseRegion) delegate.buildEntityRegion(regionName, null, MUTABLE_VERSIONED);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties)
      throws CacheException {
  return delegate.buildQueryResultsRegion(regionName, properties);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public EntityRegion buildEntityRegion(String regionName, Properties properties,
      CacheDataDescription metadata) throws CacheException {
  return delegate.buildEntityRegion(regionName, properties, metadata);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
    throws CacheException {
  return delegate.buildNaturalIdRegion( regionName, properties, metadata );
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public CollectionRegion buildCollectionRegion(String regionName, Properties properties,
      CacheDataDescription metadata) throws CacheException {
  return delegate.buildCollectionRegion(regionName, properties, metadata);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties)
      throws CacheException {
  return delegate.buildTimestampsRegion(regionName, properties);
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata) {
  if ( log.isDebugEnabled() ) {
    log.debug("Building natural id cache region [" + regionName + "]");
  }
  final AdvancedCache cache = getCache( regionName, DataType.NATURAL_ID, metadata);
  NaturalIdRegion region = new NaturalIdRegionImpl(cache, regionName, transactionManager, metadata, this, getCacheKeysFactory());
 startRegion((BaseRegion) region);
  return region;
}
origin: org.infinispan/infinispan-hibernate-cache-v51

@Override
public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Building timestamps cache region [" + regionName + "]" );
  }
  final AdvancedCache cache = getCache( regionName, DataType.TIMESTAMPS, null);
  TimestampsRegion region;
  if ( Caches.isClustered(cache) ) {
    region = new ClusteredTimestampsRegionImpl(cache, regionName, this);
  }
  else {
    region = new TimestampsRegionImpl(cache, regionName, this);
  }
 startRegion((BaseRegion) region);
  return region;
}
origin: org.infinispan/infinispan-hibernate-cache-v51

  @Override
  public long nextTimestamp() {
   return delegate.nextTimestamp();
  }
}
origin: org.infinispan/infinispan-hibernate-cache-v51

private void prepareForValidation() {
  if (strategy != null) {
    assert strategy == Strategy.VALIDATION;
    return;
  }
 // If two regions share the same name, they should use the same cache.
 // Using same cache means they should use the same put validator.
 // Besides, any cache interceptor initialization should only be done once.
 // Synchronizes on the cache instance since it's shared between regions with same name.
 synchronized (cache) {
   PutFromLoadValidator found = findValidator(cache);
   validator = found != null ? found : new PutFromLoadValidator(cache, factory, factory.getPendingPutsCacheConfiguration());
   strategy = Strategy.VALIDATION;
 }
}
org.infinispan.hibernate.cache.v51InfinispanRegionFactory

Javadoc

A RegionFactory for Infinispan-backed cache regions.

Most used methods

  • start
  • getCache
  • getPendingPutsCacheConfiguration
  • nextTimestamp
  • buildCollectionRegion
  • buildEntityRegion
  • buildNaturalIdRegion
  • buildQueryResultsRegion
  • buildTimestampsRegion
  • configureTransactionManager
  • createCacheManager
  • createTransactionManagerLookup
  • createCacheManager,
  • createTransactionManagerLookup,
  • defineDataTypeCacheConfigurations,
  • determineCacheKeysFactory,
  • extractProperty,
  • getCacheCommandFactory,
  • getCacheKeysFactory,
  • getCacheManager,
  • getOrCreateConfig,
  • getSettings

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now