Skip to content

Commit

Permalink
HashMap -> CocurrentHashMap (https://issues.redhat.com/browse/JGRP-2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jan 23, 2024
1 parent 0f67c50 commit c96fdff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/jgroups/protocols/UNICAST3.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public class UNICAST3 extends Protocol implements AgeOutCache.Handler<Address> {

protected final ReentrantLock recv_table_lock=new ReentrantLock();

/** Used by the retransmit task to keep the last retransmitted seqno per sender (https://issues.redhat.com/browse/JGRP-1539) */
protected final Map<Address,Long> xmit_task_map=new HashMap<>();
/** Used by the retransmit task to keep the last retransmitted seqno per member (applicable only
* for received messages (ReceiverEntry)): https://issues.redhat.com/browse/JGRP-1539 */
protected final Map<Address,Long> xmit_task_map=new ConcurrentHashMap<>();

/** RetransmitTask running every xmit_interval ms */
protected Future<?> xmit_task;
Expand Down

0 comments on commit c96fdff

Please sign in to comment.