Skip to content

Commit d819f22

Browse files
author
Robin Duda
committed
ElasticMap: use vert.x event loop for requests & responses.
- fixes a deadlock trying to close the apache internal http client from request thread.
1 parent f6cfe2e commit d819f22

File tree

4 files changed

+155
-204
lines changed

4 files changed

+155
-204
lines changed

core/main/java/com/codingchili/core/Launcher.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.codingchili.core;
22

3-
import com.codingchili.core.configuration.exception.NoServicesConfiguredForBlock;
43
import io.vertx.core.*;
5-
import org.apache.commons.jexl2.JexlEngine;
64

75
import java.util.ArrayList;
86
import java.util.List;

core/main/java/com/codingchili/core/context/ShutdownHook.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919
public class ShutdownHook extends Thread {
2020
private static final Map<Vertx, ShutdownHook> contexts = new HashMap<>();
21-
private SystemContext context;
22-
private Logger logger;
21+
private final SystemContext context;
22+
private final Logger logger;
2323

2424
/**
2525
* Registers a context for graceful shutdown as a JVM hook so that the context

0 commit comments

Comments
 (0)