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

org.infinispan.commands.module.ModuleCommandInitializer Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.commands.module;

import org.infinispan.commands.ReplicableCommand;
import org.infinispan.factories.annotations.SurvivesRestarts;
import org.infinispan.factories.scopes.Scope;
import org.infinispan.factories.scopes.Scopes;

/**
 * Modules which wish to implement their own commands and visitors must also provide an implementation of this interface
 * and declare it in their infinispan-module.properties file under key infinispan.module.command.initializer.
 * 

* Implementations must be public classes with a public, no-arg constructor for instantiation. *

* @author Manik Surtani * @since 5.0 */ @Scope(Scopes.NAMED_CACHE) @SurvivesRestarts public interface ModuleCommandInitializer { /** * Initializes a command constructed using {@link ModuleCommandFactory#fromStream(byte, Object[])} with * necessary named-cache-specific components. * * @param c command to initialize * @param isRemote true if the source is a remote node in the cluster, false otherwise. */ void initializeReplicableCommand(ReplicableCommand c, boolean isRemote); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy