Skip to content

1.2 changelog

Konstantin Lutovich edited this page Mar 9, 2017 · 14 revisions

###1.2.0-rc1

not released yet

###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 each Session#run() and each transaction started with Session#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 default AccessMode 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

#325

  • 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
Clone this wiki locally