(feat): Make thread names identifiable.#1395
Conversation
| private static class ReactorRunner implements Callable<Object> | ||
| { | ||
| private final static String THREAD_NAME = "azure-iot-sdk-ReactorRunner"; | ||
| private final static String THREAD_FIXED_NAME = "azure-iot-sdk-ReactorRunner-"; |
There was a problem hiding this comment.
Please ignore the static field rename, it's for my own tracking purposes, will revert when the PR is ready for review.
|
As a user, I think I would like to have some say in what these threads are named. Maybe allow for a pattern like:
like
And if users don't provide a prefix here, we can just name the thread
That way, users can distinguish threads not only per connection, but per client/user defined context as well What do you think @azabbasi ? |
Interesting, so where do you envision getting that prefix input? when instantiating the client? |
452a14b to
932b696
Compare
Fix dependency AMQPS connection Update AmqpsConnection.java Some more fixes are in. Update AmqpsConnection.java Make adjustments.
|
/azp run Java Prod |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Java Prod |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Java Prod |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Just a heads up for when you merge: it is "identifiable" not "identifyable" |
|
/azp run Java Prod |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run SDL |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…dk/iot/service/transport/amqps/AmqpFileUploadNotificationReceive.java Co-authored-by: timtay-microsoft <timtay@microsoft.com>
…/iot/device/transport/IotHubTransportTest.java Co-authored-by: timtay-microsoft <timtay@microsoft.com>
…/iot/device/transport/IotHubTransport.java Co-authored-by: timtay-microsoft <timtay@microsoft.com>
…/iot/device/transport/amqps/AmqpsIotHubConnection.java Co-authored-by: timtay-microsoft <timtay@microsoft.com>
…amqp/AmqpsConnection.java Co-authored-by: timtay-microsoft <timtay@microsoft.com>
|
/azp run Java Prod, SDL |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run Java Prod Basic, horton-java-gate |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Checklist
mainbranch.Reference/Link to the issue solved with this PR (if any)
Description of the problem
Description of the solution