Package org.infinispan.config

Examples of org.infinispan.config.CustomInterceptorConfig


   protected RemoteCache remoteCache;

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      ConfigurationBuilder builder = new ConfigurationBuilder();
      CustomInterceptorConfig cic = new CustomInterceptorConfig(
            new TimeoutInducingInterceptor(), false, false, -1,
            EntryWrappingInterceptor.class.getName(), "");
      builder.customInterceptors().addInterceptor().interceptor(cic.getInterceptor());
      return TestCacheManagerFactory.createCacheManager(builder);
   }
View Full Code Here


         after = getAttributeValue(interceptorElement, "after");
         if (!existsAttribute(after)) after = null;

         CommandInterceptor interceptor = buildCommandInterceptor(interceptorElement);

         CustomInterceptorConfig customInterceptorConfig = new CustomInterceptorConfig(interceptor, first, last, index, after, before);
         interceptorConfigs.add(customInterceptorConfig);
      }
      return interceptorConfigs;
   }
View Full Code Here

         after = getAttributeValue(interceptorElement, "after");
         if (!existsAttribute(after)) after = null;

         CommandInterceptor interceptor = buildCommandInterceptor(interceptorElement);

         CustomInterceptorConfig customInterceptorConfig = new CustomInterceptorConfig(interceptor, first, last, index, after, before);
         interceptorConfigs.add(customInterceptorConfig);
      }
      return interceptorConfigs;
   }
View Full Code Here

         after = parser.getAttributeValue(interceptorElement, "after");
         if (!parser.existsAttribute(after))
            after = null;

         CommandInterceptor interceptor = buildCommandInterceptor(interceptorElement);
         CustomInterceptorConfig customInterceptorConfig = new CustomInterceptorConfig(interceptor,
                  first, last, index, after, before);
         interceptorConfigs.add(customInterceptorConfig);
      }
      ((Configuration) bean).setCustomInterceptors(interceptorConfigs);
   }
View Full Code Here

      // we also need a custom interceptor to intercept get() calls after the CLI, to slow it down so an evict goes
      // through first

      sdi = new SlowDownInterceptor();
      CustomInterceptorConfig cic = new CustomInterceptorConfig(sdi);
      cic.setAfterInterceptor(CacheLoaderInterceptor.class);
      config.setCustomInterceptors(Collections.singletonList(cic));
      return TestCacheManagerFactory.createCacheManager(config);
   }
View Full Code Here

                  expectedIndexLocalOnly, configuration.indexing().indexLocalOnly());
   }

   public final void configurationOverridesShouldOverrideCustomInterceptorsPropIfExplicitlySet()
         throws Exception {
      final CustomInterceptorConfig customInterceptor = new CustomInterceptorConfig();
      final List<CustomInterceptorConfig> expectedCustomInterceptors = Arrays
            .asList(customInterceptor);

      final ConfigurationOverrides objectUnderTest = new ConfigurationOverrides();
      objectUnderTest.setCustomInterceptors(expectedCustomInterceptors);
View Full Code Here

TOP

Related Classes of org.infinispan.config.CustomInterceptorConfig

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.