-
Couldn't load subscription status.
- Fork 157
1.2 changelog
Zhen Li edited this page Mar 23, 2017
·
14 revisions
- Resolve DNS to IP addresses for the initial URI provided for routing driver #322
- Add IPv6 address support in driver URI #322
- Fix bug in
session#resetthatTransactionfunctions (Session#readTransaction()andSession#writeTransaction()) should respectSession#reset()call the same way other statement running operations do. #340
- 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
-
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 #325:
-
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
-
-
Added memorization of the initial routing address so rediscovery procedure can use it when all other known routers fail to respond #326
-
Deprecated
Session#reset()#327