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

@@ -87,6 +87,11 @@
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>edu.umd.cs.mtc</groupId>
<artifactId>multithreadedtc</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>