DATACASS-253 - Add synchronization to CachedPreparedStatementCreator.

CachedPreparedStatementCreator is now thread-safe and synchronizes concurrent calls to statement preparation. The synchronization prevents multiple calls to Session.prepare(…) for the same session, CQL statement and keyspace.
This commit is contained in:
Mark Paluch
2016-06-03 13:41:36 +02:00
committed by John Blum
parent abcac5f5ee
commit 39dca76e7c
4 changed files with 264 additions and 21 deletions

View File

@@ -76,6 +76,7 @@
<dist.id>spring-data-cassandra</dist.id>
<el.version>1.0</el.version>
<failsafe.version>2.16</failsafe.version>
<multithreadedtc.version>1.01</multithreadedtc.version>
<project.type>multi</project.type>
<springdata.commons>1.13.0.BUILD-SNAPSHOT</springdata.commons>
</properties>
@@ -189,6 +190,13 @@
<version>3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>edu.umd.cs.mtc</groupId>
<artifactId>multithreadedtc</artifactId>
<version>${multithreadedtc.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>