@Test(expectedExceptions = CacheConfigurationException.class) public void testL1WithExceptionEviction() { Configuration config = new ConfigurationBuilder() .clustering() .cacheMode(CacheMode.DIST_SYNC) .l1().enable() .memory() .evictionStrategy(EvictionStrategy.EXCEPTION) .size(10) .transaction() .transactionMode(org.infinispan.transaction.TransactionMode.TRANSACTIONAL) .build(); assertNotNull(config); }
public L1ConfigurationBuilder enable() { attributes.attribute(ENABLED).set(true); return this; }
L1ConfigurationBuilder extends AbstractClusteringConfigurationChildBuilder implements Builder<L1Configuration>, ConfigurationBuilderInfo { public L1ConfigurationBuilder enable() { attributes.attribute(ENABLED).set(true); return this; } }
L1ConfigurationBuilder extends AbstractClusteringConfigurationChildBuilder implements Builder<L1Configuration>, ConfigurationBuilderInfo { public L1ConfigurationBuilder enable() { attributes.attribute(ENABLED).set(true); return this; } L1ConfigurationBuilder(ClusteringConfigurationBuilder builder); }
L1ConfigurationBuilder extends AbstractClusteringConfigurationChildBuilder implements Builder<L1Configuration>, ConfigurationBuilderInfo { public L1ConfigurationBuilder enable() { attributes.attribute(ENABLED).set(true); return this; } L1ConfigurationBuilder(ClusteringConfigurationBuilder builder); @Override ElementDefinition getElementDefinition(); @Override AttributeSet attributes(); L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold); L1ConfigurationBuilder lifespan(long lifespan); L1ConfigurationBuilder lifespan(long lifespan, TimeUnit unit); L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis); L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis, TimeUnit unit); L1ConfigurationBuilder enable(); L1ConfigurationBuilder disable(); L1ConfigurationBuilder enabled(boolean enabled); @Override void validate(); @Override void validate(GlobalConfiguration globalConfig); @Override L1Configuration create(); @Override L1ConfigurationBuilder read(L1Configuration template); @Override String toString(); }
L1ConfigurationBuilder extends AbstractClusteringConfigurationChildBuilder implements Builder<L1Configuration>, ConfigurationBuilderInfo { public L1ConfigurationBuilder enable() { attributes.attribute(ENABLED).set(true); return this; } L1ConfigurationBuilder(ClusteringConfigurationBuilder builder); @Override ElementDefinition getElementDefinition(); @Override AttributeSet attributes(); L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold); L1ConfigurationBuilder lifespan(long lifespan); L1ConfigurationBuilder lifespan(long lifespan, TimeUnit unit); L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis); L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis, TimeUnit unit); L1ConfigurationBuilder enable(); L1ConfigurationBuilder disable(); L1ConfigurationBuilder enabled(boolean enabled); @Override void validate(); @Override void validate(GlobalConfiguration globalConfig); @Override L1Configuration create(); @Override L1ConfigurationBuilder read(L1Configuration template); @Override String toString();  }