-
Notifications
You must be signed in to change notification settings - Fork 155
1.2 changelog
Konstantin Lutovich edited this page Mar 2, 2017
·
14 revisions
###1.2.0-rc1
not released yet
- 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 defaultAccessMode
on 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