Package org.infinispan.commands
Class RemoteCommandsFactory
java.lang.Object
org.infinispan.commands.RemoteCommandsFactory
Specifically used to create un-initialized
ReplicableCommand
s from a byte stream.
This is a Scopes.GLOBAL
component and doesn't have knowledge of initializing a command by injecting
cache-specific components into it.- Since:
- 4.0
- Author:
- Manik Surtani, Mircea.Markus@jboss.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromStream
(byte id, byte type) Creates an un-initialized command.org.infinispan.commands.remote.CacheRpcCommand
fromStream
(byte id, byte type, ByteString cacheName) Resolve anCacheRpcCommand
from the stream.
-
Constructor Details
-
RemoteCommandsFactory
public RemoteCommandsFactory()
-
-
Method Details
-
fromStream
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.- Parameters:
id
- id of the commandtype
- type of the command- Returns:
- a replicable command
-
fromStream
public org.infinispan.commands.remote.CacheRpcCommand fromStream(byte id, byte type, ByteString cacheName) Resolve anCacheRpcCommand
from the stream.- Parameters:
id
- id of the commandtype
- type of command (whether internal or user defined)cacheName
- cache name at which this command is directed- Returns:
- an instance of
CacheRpcCommand
-