Package org.hibernate.cache.infinispan.access

Examples of org.hibernate.cache.infinispan.access.TransactionalAccessDelegate


                  }
                  return acquired;
               }
            };

            final TransactionalAccessDelegate delegate =
                  new TransactionalAccessDelegate(localCollectionRegion, validator);
            final TransactionManager localTm = localCollectionRegion.getTransactionManager();

            Callable<Void> pferCallable = new Callable<Void>() {
               public Void call() throws Exception {
                  delegate.putFromLoad( "k1", "v1", 0, null );
                  return null;
               }
            };

            Callable<Void> removeCallable = new Callable<Void>() {
               public Void call() throws Exception {
                  removeLatch.await();
                  Caches.withinTx(localTm, new Callable<Void>() {
                     @Override
                     public Void call() throws Exception {
                        delegate.remove("k1");
                        return null;
                     }
                  });
                  pferLatch.countDown();
                  return null;
View Full Code Here


  
   private final TransactionalAccessDelegate delegate;

   TransactionalAccess(EntityRegionImpl region) {
      this.region = region;
      this.delegate = new TransactionalAccessDelegate(region.getCache());
   }
View Full Code Here

  
   private final TransactionalAccessDelegate delegate;

   TransactionalAccess(CollectionRegionImpl region) {
      this.region = region;
      this.delegate = new TransactionalAccessDelegate(region.getCache());
   }
View Full Code Here

  private final NaturalIdRegionImpl region;
  private final TransactionalAccessDelegate delegate;

  TransactionalAccess(NaturalIdRegionImpl region) {
    this.region = region;
    this.delegate = new TransactionalAccessDelegate( region, region.getPutFromLoadValidator() );
  }
View Full Code Here

                  }
                  return acquired;
               }
            };

            final TransactionalAccessDelegate delegate =
                  new TransactionalAccessDelegate(localCollectionRegion, validator);
            final TransactionManager localTm = localCollectionRegion.getTransactionManager();

            Callable<Void> pferCallable = new Callable<Void>() {
               public Void call() throws Exception {
                  delegate.putFromLoad("k1", "v1", 0, null);
                  return null;
               }
            };

            Callable<Void> removeCallable = new Callable<Void>() {
               public Void call() throws Exception {
                  removeLatch.await();
                  Caches.withinTx(localTm, new Callable<Void>() {
                     @Override
                     public Void call() throws Exception {
                        delegate.remove("k1");
                        return null;
                     }
                  });
                  pferLatch.countDown();
                  return null;
View Full Code Here

  
   private final TransactionalAccessDelegate delegate;

   TransactionalAccess(EntityRegionImpl region) {
      this.region = region;
      this.delegate = new TransactionalAccessDelegate(region, region.getPutFromLoadValidator());
   }
View Full Code Here

  
   private final TransactionalAccessDelegate delegate;

   TransactionalAccess(CollectionRegionImpl region) {
      this.region = region;
      this.delegate = new TransactionalAccessDelegate(region, region.getPutFromLoadValidator());
   }
View Full Code Here

TOP

Related Classes of org.hibernate.cache.infinispan.access.TransactionalAccessDelegate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.