-
Notifications
You must be signed in to change notification settings - Fork 157
1.2 changelog
Konstantin Lutovich edited this page Mar 16, 2017
·
14 revisions
###1.2.0
not released yet
- Added dedicated functional interface
TransactionWorkfor declarative transactionsSession#readTransaction(TransactionWork)andSession#writeTransaction(TransactionWork)#328 - Make declarative transactions commit by default and not require transaction to be marked for success via
Transaction#success()invocation #328
###1.2.0-rc1
- Decoupled socket connection from the
Session. Previously session was bound to a connection and used same connection throughout its lifetime. Now new connection will be used for eachSession#run()and each transaction started withSession#beginTransaction(). This improves load-balancing and makes idle connections return to the pool as soon as possible #324 - Added following new API methods:
-
Driver#session(String bookmark)to allow initial bookmark on session creation which is used by the first transaction -
Driver#session(AccessMode mode, String bookmark)to allow both initial bookmark and defaultAccessModeon session creation -
Session#readTransaction(Function<Transaction, T> work)to allow declarative read transactions with exponential backoff retry policy -
Session#writeTransaction(Function<Transaction, T> work)to allow declarative write transactions with exponential backoff retry policy -
ConfigBuilder#withMaxTransactionRetryTime(int value, TimeUnit unit)to configure exponential backoff retry policy for#readTransaction()and#writeTransaction(), default value is 30 seconds
-