public interface ModuleCommandFactory
Note that this is a Scopes.GLOBAL component and as such cannot have Inject methods referring to
Scopes.NAMED_CACHE scoped components. For such components, use a corresponding Scopes.NAMED_CACHE-scoped ModuleCommandInitializer.
| Modifier and Type | Method and Description |
|---|---|
ReplicableCommand |
fromStream(byte commandId)
Construct and initialize a
ReplicableCommand based on the command id. |
CacheRpcCommand |
fromStream(byte commandId,
ByteString cacheName)
Construct and initialize a
CacheRpcCommand based on the command id. |
Map<Byte,Class<? extends ReplicableCommand>> |
getModuleCommands()
Provides a map of command IDs to command types of all the commands handled by the command factory instance.
|
Map<Byte,Class<? extends ReplicableCommand>> getModuleCommands()
ReplicableCommand fromStream(byte commandId)
ReplicableCommand based on the command id.commandId - command id to constructCacheRpcCommand fromStream(byte commandId, ByteString cacheName)
CacheRpcCommand based on the command id.commandId - command id to constructcacheName - cache name at which command to be created is directedCacheRpcCommandCopyright © 2022 JBoss by Red Hat. All rights reserved.