gravity9-tech / mongo-cse

Mongo Change Stream Enhancer divides Change Stream events into partitions and enables you to handle them in separate Threads, increasing throughput. It achieves that by creating a Change Stream per each partition (number is configurable) and handling each Change Stream in a dedicated Thread.
3 stars 1 forks source link

Correct thread and Runnable usage #31

Closed piotrlg9 closed 9 months ago

piotrlg9 commented 10 months ago

Thread class is used internally by MongoChangeStreamWorker which is also Runnable. This is not according to standards and probably should be corrected.

There are two possible solutions:

MongoChangeStreamWorker can still refer to thread (if required at all) - via Thread.currentThread.

PiotrGravity commented 9 months ago

Resolved with #39