Package org.infinispan.query.backend.TransactionHelper

Examples of org.infinispan.query.backend.TransactionHelper.Operation


   }

   private void updateSearchFactory(final Class<?>... classes) {
      mutating.lock();
      try {
         transactionHelper.runSuspendingTx(new Operation() {
            @Override
            public void execute() {
               // we need to preserve the state of this flag manually because addClasses will cause reconfiguration and the flag is lost
               boolean isStatisticsEnabled = searchFactory.getStatistics().isStatisticsEnabled();
               searchFactory.addClasses(classes);
View Full Code Here


         if (reducedSet.isEmpty()) {
            return;
         }
         final Class<?>[] newtypes = new Class<?>[reducedSet.size()];
         reducedSet.toArray(newtypes);
         transactionHelper.runSuspendingTx(new Operation() {
            @Override
            public void execute() {
               // we need to preserve the state of this flag manually because addClasses will cause reconfiguration and the flag is lost
               boolean isStatisticsEnabled = searchFactory.getStatistics().isStatisticsEnabled();
               searchFactory.addClasses(newtypes);
View Full Code Here

TOP

Related Classes of org.infinispan.query.backend.TransactionHelper.Operation

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.