Interface ModuleCommandInitializer


  • public interface ModuleCommandInitializer
    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.

    Since:
    5.0
    Author:
    Manik Surtani
    • Method Detail

      • initializeReplicableCommand

        void initializeReplicableCommand​(ReplicableCommand c,
                                         boolean isRemote)
        Initializes a command constructed using ModuleCommandFactory.fromStream(byte) with necessary named-cache-specific components.
        Parameters:
        c - command to initialize
        isRemote - true if the source is a remote node in the cluster, false otherwise.