Use auto-indexed thread name as prefix for thread name

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-01-26 12:27:30 +08:00
parent 2f36eadbca
commit fa03f16917
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307

View file

@ -50,7 +50,7 @@ public class PriceRequest {
String baseUrl = provider.getBaseUrl();
SettableFuture<Tuple2<Map<String, Long>, Map<String, MarketPrice>>> resultFuture = SettableFuture.create();
ListenableFuture<Tuple2<Map<String, Long>, Map<String, MarketPrice>>> future = executorService.submit(() -> {
Thread.currentThread().setName("PriceRequest @ " + baseUrl);
Thread.currentThread().setName(Thread.currentThread().getName() + "@" + baseUrl);
return provider.getAll();
});