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

org.infinispan.commands.remote.CacheRpcCommand Maven / Gradle / Ivy

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

import org.infinispan.commands.ReplicableCommand;
import org.infinispan.remoting.transport.Address;

/**
 * The {@link org.infinispan.remoting.rpc.RpcManager} only replicates commands wrapped in a {@link CacheRpcCommand}.
 *
 * @author Manik Surtani
 * @author [email protected]
 * @since 4.0
 */
public interface CacheRpcCommand extends ReplicableCommand {

   /**
    * @return the name of the cache that produced this command.  This will also be the name of the cache this command is
    *         intended for.
    */
   String getCacheName();

   /**
    * Set the origin of the command
    * @param origin
    */
   void setOrigin(Address origin);
   
   /**
    * Get the origin of the command
    * @return
    */
   Address getOrigin();
   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy