Class RemoteCommandsFactory

    • Constructor Detail

      • RemoteCommandsFactory

        public RemoteCommandsFactory()
    • Method Detail

      • fromStream

        public ReplicableCommand fromStream​(byte id,
                                            byte type)
        Creates an un-initialized command. Un-initialized in the sense that parameters will be set, but any components specific to the cache in question will not be set.

        You would typically set these parameters using CommandsFactory.initializeReplicableCommand(ReplicableCommand,boolean)

        Parameters:
        id - id of the command
        type - type of the command
        Returns:
        a replicable command
      • fromStream

        public org.infinispan.commands.remote.CacheRpcCommand fromStream​(byte id,
                                                                         byte type,
                                                                         ByteString cacheName)
        Resolve an CacheRpcCommand from the stream.
        Parameters:
        id - id of the command
        type - type of command (whether internal or user defined)
        cacheName - cache name at which this command is directed
        Returns:
        an instance of CacheRpcCommand