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

org.infinispan.commands.GlobalRpcCommand Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commands;

import java.util.concurrent.CompletionStage;

import org.infinispan.factories.GlobalComponentRegistry;

/**
 * Commands correspond to specific areas of functionality in the cluster, and can be replicated using the {@link
 * org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler}.
 *
 * Implementations of this interface must not rely on calls to {@link GlobalComponentRegistry#wireDependencies(Object)},
 * as {@code @Inject} annotations on implementations will be ignored, components must be accessed via the
 * {@link GlobalComponentRegistry} parameter of {@link #invokeAsync(GlobalComponentRegistry)}.
 *
 * @author Ryan Emerson
 * @since 11.0
 */
public interface GlobalRpcCommand extends ReplicableCommand {
   /**
    * Invoke the command asynchronously.
    */
   default CompletionStage invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable {
      return invokeAsync();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy