congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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