Java 11 migrate remaining q-r (#1121)

* Moves queue-load-leveling to Java 11

* Moves reactor to Java 11

* Moves reader-writer-lock to Java 11

* Moves repository to Java 11

* Moves resource-acquisition-is-initialization to Java 11

* Moves retry to Java 11

* Moves role-object to Java 11
This commit is contained in:
Anurag Agarwal
2020-01-04 22:13:12 +05:30
committed by Ilkka Seppälä
parent cd2a2e7711
commit 20ea465b7f
52 changed files with 424 additions and 554 deletions

View File

@@ -78,7 +78,7 @@ to recover from this error.
We can model a 'recoverable' scenario by instantiating `FindCustomer` like this:
```java
final BusinessOperation<String> op = new FindCustomer(
final var op = new FindCustomer(
"12345",
new CustomerNotFoundException("not found"),
new CustomerNotFoundException("still not found"),
@@ -97,7 +97,7 @@ worker thread in the database subsystem typically needs 50ms to
this:
```java
final BusinessOperation<String> op = new Retry<>(
final var op = new Retry<>(
new FindCustomer(
"1235",
new CustomerNotFoundException("not found"),