org.jboss.as.clustering.infinispan.subsystem.InvalidationCacheResourceDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-infinispan-extension Show documentation
Show all versions of wildfly-clustering-infinispan-extension Show documentation
Installs an extension that provides the infinispan subsystem.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.as.clustering.infinispan.subsystem;
import java.util.function.UnaryOperator;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.CacheMode;
import org.jboss.as.controller.PathElement;
import org.wildfly.subsystem.service.capture.FunctionExecutorRegistry;
/**
* Resource description for the addressable resource /subsystem=infinispan/cache-container=X/invalidation-cache=*
*
* @author Richard Achmatowicz (c) 2011 Red Hat Inc.
*/
public class InvalidationCacheResourceDefinition extends ClusteredCacheResourceDefinition {
static final PathElement WILDCARD_PATH = pathElement(PathElement.WILDCARD_VALUE);
static final PathElement pathElement(String name) {
return PathElement.pathElement("invalidation-cache", name);
}
InvalidationCacheResourceDefinition(FunctionExecutorRegistry> executors) {
super(WILDCARD_PATH, UnaryOperator.identity(), CacheMode.INVALIDATION_SYNC, executors);
}
}