Merge pull request #646 from alecgrieser/000640-pass-executor-in-fdbdatabase-run
Thread custom executors through FDBDatabase::run and FDBDatabase::read
This commit is contained in:
commit
d0fc944c68
|
@ -45,7 +45,7 @@ class FDBDatabase extends NativeObjectWrapper implements Database, OptionConsume
|
|||
|
||||
@Override
|
||||
public <T> T run(Function<? super Transaction, T> retryable, Executor e) {
|
||||
Transaction t = this.createTransaction();
|
||||
Transaction t = this.createTransaction(e);
|
||||
try {
|
||||
while (true) {
|
||||
try {
|
||||
|
@ -63,7 +63,7 @@ class FDBDatabase extends NativeObjectWrapper implements Database, OptionConsume
|
|||
|
||||
@Override
|
||||
public <T> T read(Function<? super ReadTransaction, T> retryable, Executor e) {
|
||||
return this.run(retryable);
|
||||
return this.run(retryable, e);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
Release Notes
|
||||
#############
|
||||
|
||||
5.2.8
|
||||
=====
|
||||
|
||||
Bindings
|
||||
--------
|
||||
|
||||
* Java: ``FDBDatabase::run`` and ``FDBDatabase::read`` now use the ``Executor`` provided for executing asynchronous callbacks instead of the default one for the database. `(Issue #640) <https://github.com/apple/foundationdb/issues/640>`_
|
||||
|
||||
5.2.7
|
||||
=====
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Version>5.2.7</Version>
|
||||
<Version>5.2.8</Version>
|
||||
<PackageName>5.2</PackageName>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue