use of org.infinispan.extendedstats.wrappers.ExtendedStatisticInterceptor in project infinispan by infinispan.
the class LocalExtendedStatisticTest method testClear.
public void testClear() {
assertEmpty(KEY_1);
ExtendedStatisticInterceptor statisticInterceptor = getExtendedStatistic(cache);
cache.put(KEY_1, VALUE_1);
assertCacheValue(KEY_1, VALUE_1);
cache.clear();
assertCacheValue(KEY_1, null);
assertNoTransactions();
Assert.assertFalse(statisticInterceptor.getCacheStatisticManager().hasPendingTransactions());
}
use of org.infinispan.extendedstats.wrappers.ExtendedStatisticInterceptor in project infinispan by infinispan.
the class LocalExtendedStatisticTest method createCacheManager.
@Override
protected EmbeddedCacheManager createCacheManager() {
ConfigurationBuilder builder = getDefaultClusteredCacheConfig(CacheMode.LOCAL, true);
builder.locking().isolationLevel(IsolationLevel.REPEATABLE_READ);
builder.transaction().recovery().disable();
builder.customInterceptors().addInterceptor().interceptor(new ExtendedStatisticInterceptor()).position(InterceptorConfiguration.Position.FIRST);
return TestCacheManagerFactory.createCacheManager(builder);
}
Aggregations