org.infinispan.commands
Class RemoteCommandFactory

java.lang.Object
  extended by org.infinispan.commands.RemoteCommandFactory

public class RemoteCommandFactory
extends Object

Specifically used to create un-initialized ReplicableCommands from a byte stream.

Since:
4.0
Author:
Manik Surtani

Constructor Summary
RemoteCommandFactory()
           
 
Method Summary
 ReplicableCommand fromStream(byte id, Object[] parameters)
          Creates an un-initialized command.
 void init(RpcManager rpcManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCommandFactory

public RemoteCommandFactory()
Method Detail

init

public void init(RpcManager rpcManager)

fromStream

public ReplicableCommand fromStream(byte id,
                                    Object[] parameters)
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)

Parameters:
id - id of the command
parameters - parameters to set
Returns:
a replicable command


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.