org.wildfly.clustering.ejb.cache.bean.DefaultBeanGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-cache Show documentation
Show all versions of wildfly-clustering-ejb-cache Show documentation
Contains code common to the wildfly-clustering-ejb-hotrod and wildfly-clustering-ejb-infinispan modules.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.ejb.cache.bean;
import java.util.Map;
import java.util.concurrent.CompletionStage;
import java.util.function.Consumer;
import org.wildfly.clustering.cache.CacheEntryMutator;
import org.wildfly.clustering.ejb.bean.BeanInstance;
/**
* A default {@link BeanGroup} implementation based on a map of bean instances.
* @author Paul Ferraro
* @param the bean identifier type
* @param the bean instance type
*/
public class DefaultBeanGroup> extends DefaultImmutableBeanGroup implements MutableBeanGroup {
private final Map instances;
private final Consumer