org.infinispan.commands
Class RemoteCommandFactory
java.lang.Object
org.infinispan.commands.RemoteCommandFactory
public class RemoteCommandFactory
- extends Object
Specifically used to create un-initialized ReplicableCommand
s from a byte stream.
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteCommandFactory
public RemoteCommandFactory()
inject
public void inject(Transport transport)
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 commandparameters
- parameters to set
- Returns:
- a replicable command
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.