name connection thread

This commit is contained in:
Christoph Sturm 2019-09-06 11:07:01 +02:00
parent 6273a58c3b
commit 4223036f47

View File

@ -140,7 +140,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
private final ConnectionListener connectionListener;
@Getter
private final String uid;
private final ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
private final ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor(runnable -> new Thread(runnable, "Connection.java executor-service"));
// holder of state shared between InputHandler and Connection
@Getter
private final Statistic statistic;