public class RemoteCommandsFactory extends Object
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.Constructor and Description |
---|
RemoteCommandsFactory() |
Modifier and Type | Method and Description |
---|---|
ReplicableCommand |
fromStream(byte id,
byte type)
Creates an un-initialized command.
|
CacheRpcCommand |
fromStream(byte id,
byte type,
ByteString cacheName)
Resolve an
CacheRpcCommand from the stream. |
public ReplicableCommand fromStream(byte id, byte type)
id
- id of the commandtype
- type of the commandpublic CacheRpcCommand fromStream(byte id, byte type, ByteString cacheName)
CacheRpcCommand
from the stream.id
- id of the commandtype
- type of command (whether internal or user defined)cacheName
- cache name at which this command is directedCacheRpcCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.