Skip to content

Commit

Permalink
CAMEL-20590: avoiding delay to execute timeout to Camel RabbitMQ (InO…
Browse files Browse the repository at this point in the history
…ut) (#13556)

* CAMEL-20590: avoiding delay to execute timeout to Camel RabbitMQ (InOut)

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>

* CAMEL-20590: avoiding delay to execute timeout to Camel RabbitMQ (InOut)

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>

* CAMEL-20590: avoiding delay to execute timeout to Camel RabbitMQ (InOut)

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>

* CAMEL-20590: avoiding delay to execute timeout to Camel RabbitMQ (InOut)

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>

---------

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>
  • Loading branch information
rhuan080 committed Mar 22, 2024
1 parent baebc3e commit 8dbd1fe
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -83,6 +83,10 @@ public DefaultTimeoutMap(ScheduledExecutorService executor, long requestMapPollT
@Override
public V get(K key) {
TimeoutMapEntry<K, V> entry;
// if no contains, the lock is not necessary
if (!map.containsKey(key)) {
return null;
}
lock.lock();
try {
entry = map.get(key);
Expand Down

0 comments on commit 8dbd1fe

Please sign in to comment.