This commit is contained in:
@@ -28,6 +28,7 @@ public class MessageProducers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MessageProducer getProducer(MessageRecord message) {
|
public MessageProducer getProducer(MessageRecord message) {
|
||||||
|
if (this.producers.length == 1) return this.producers[0];
|
||||||
int hash = index.incrementAndGet();
|
int hash = index.incrementAndGet();
|
||||||
if (index.get() > 1000 * producers.length) {
|
if (index.get() > 1000 * producers.length) {
|
||||||
synchronized (index) {
|
synchronized (index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user