use of org.infinispan.persistence.support.WaitDelegatingNonBlockingStore in project infinispan by infinispan.
the class TestingUtil method getStoreWait.
@SuppressWarnings({ "cast" })
public static <K, V> WaitDelegatingNonBlockingStore<K, V> getStoreWait(Cache<K, V> cache, int position, boolean unwrapped) {
NonBlockingStore<K, V> nonBlockingStore = getStore(cache, position, unwrapped);
KeyPartitioner keyPartitioner = extractComponent(cache, KeyPartitioner.class);
return new WaitDelegatingNonBlockingStore<>(nonBlockingStore, keyPartitioner);
}
use of org.infinispan.persistence.support.WaitDelegatingNonBlockingStore in project infinispan by infinispan.
the class JdbcStringBasedStoreAltMapperTest method createCacheStore.
@BeforeClass
public void createCacheStore() throws PersistenceException {
ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
JdbcStringBasedStoreConfigurationBuilder storeBuilder = createJdbcConfig(builder);
UnitTestDatabaseManager.buildTableManipulation(storeBuilder.table());
UnitTestDatabaseManager.configureUniqueConnectionFactory(storeBuilder);
JdbcStringBasedStore jdbcStringBasedStore = new JdbcStringBasedStore();
cacheStore = new WaitDelegatingNonBlockingStore(jdbcStringBasedStore, SingleSegmentKeyPartitioner.getInstance());
marshaller = new TestObjectStreamMarshaller(TestDataSCI.INSTANCE);
cacheStore.startAndWait(PersistenceMockUtil.createContext(getClass(), builder.build(), marshaller));
tableManager = jdbcStringBasedStore.getTableManager();
}
Aggregations