All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.infinispan.client.runtime.cache.SynchronousInfinispanGet Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.infinispan.client.runtime.cache;

import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;

import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class SynchronousInfinispanGet {
    Map>> synchronousGetLocks = new ConcurrentHashMap<>();

    public Map> get(String cacheName) {
        return synchronousGetLocks.computeIfAbsent(cacheName, k -> new ConcurrentHashMap<>());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy