Use decimal numbers for endpoint/execution IDs

This closes #249
This commit is contained in:
Michael Osipov 2020-08-18 12:16:46 +02:00 committed by Oleg Kalnichevski
parent 1c55aa1548
commit 5000f34690
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ public static long getNextExecNumber() {
}
public static String getNextExchangeId() {
return String.format("ex-%08X", COUNT.incrementAndGet());
return String.format("ex-%010d", COUNT.incrementAndGet());
}
}

View File

@ -529,7 +529,7 @@ class InternalConnectionEndpoint extends ConnectionEndpoint implements Identifia
InternalConnectionEndpoint(
final PoolEntry<HttpRoute, ManagedHttpClientConnection> poolEntry) {
this.poolEntryRef = new AtomicReference<>(poolEntry);
this.id = String.format("ep-%08X", COUNT.getAndIncrement());
this.id = String.format("ep-%010d", COUNT.getAndIncrement());
}
@Override

View File

@ -492,7 +492,7 @@ class InternalConnectionEndpoint extends AsyncConnectionEndpoint implements Iden
InternalConnectionEndpoint(final PoolEntry<HttpRoute, ManagedAsyncClientConnection> poolEntry) {
this.poolEntryRef = new AtomicReference<>(poolEntry);
this.id = String.format("ep-%08X", COUNT.getAndIncrement());
this.id = String.format("ep-%010d", COUNT.getAndIncrement());
}
@Override