()
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | public boolean isReady() { |
| 73 | try { |
| 74 | return Set.of(distributor, sessions, queue).parallelStream() |
| 75 | .map(HasReadyState::isReady) |
| 76 | .reduce(true, Boolean::logicalAnd); |
| 77 | } catch (RuntimeException e) { |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | @Override |
| 83 | public boolean matches(HttpRequest req) { |
no test coverage detected