org.infinispan.commands
Interface CommandsFactory
- All Known Implementing Classes:
- CommandsFactoryImpl
public interface CommandsFactory
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
Method Summary |
ClearCommand |
buildClearCommand()
|
ClusteredGetCommand |
buildClusteredGetCommand(Object key)
|
CommitCommand |
buildCommitCommand(GlobalTransaction gtx)
|
EvictCommand |
buildEvictCommand(Object key)
|
GetKeyValueCommand |
buildGetKeyValueCommand(Object key)
|
InvalidateCommand |
buildInvalidateCommand(Object... keys)
|
PrepareCommand |
buildPrepareCommand(GlobalTransaction gtx,
List modifications,
Address localAddress,
boolean onePhaseCommit)
|
PutKeyValueCommand |
buildPutKeyValueCommand(Object key,
Object value,
long lifespanMillis,
long maxIdleTimeMillis)
|
PutMapCommand |
buildPutMapCommand(Map map,
long lifespanMillis,
long maxIdleTimeMillis)
|
RemoveCommand |
buildRemoveCommand(Object key,
Object value)
|
ReplaceCommand |
buildReplaceCommand(Object key,
Object oldValue,
Object newValue,
long lifespanMillis,
long maxIdleTimeMillis)
|
MultipleRpcCommand |
buildReplicateCommand(List<ReplicableCommand> toReplicate)
|
RollbackCommand |
buildRollbackCommand(GlobalTransaction gtx)
|
SingleRpcCommand |
buildSingleRpcCommand(ReplicableCommand call)
|
SizeCommand |
buildSizeCommand()
|
StateTransferControlCommand |
buildStateTransferControlCommand(boolean block)
|
void |
initializeReplicableCommand(ReplicableCommand command)
Initializes a ReplicableCommand read from a data stream with components specific
to the target cache instance. |
buildPutKeyValueCommand
PutKeyValueCommand buildPutKeyValueCommand(Object key,
Object value,
long lifespanMillis,
long maxIdleTimeMillis)
buildRemoveCommand
RemoveCommand buildRemoveCommand(Object key,
Object value)
buildInvalidateCommand
InvalidateCommand buildInvalidateCommand(Object... keys)
buildReplaceCommand
ReplaceCommand buildReplaceCommand(Object key,
Object oldValue,
Object newValue,
long lifespanMillis,
long maxIdleTimeMillis)
buildSizeCommand
SizeCommand buildSizeCommand()
buildGetKeyValueCommand
GetKeyValueCommand buildGetKeyValueCommand(Object key)
buildPutMapCommand
PutMapCommand buildPutMapCommand(Map map,
long lifespanMillis,
long maxIdleTimeMillis)
buildClearCommand
ClearCommand buildClearCommand()
buildEvictCommand
EvictCommand buildEvictCommand(Object key)
buildPrepareCommand
PrepareCommand buildPrepareCommand(GlobalTransaction gtx,
List modifications,
Address localAddress,
boolean onePhaseCommit)
buildCommitCommand
CommitCommand buildCommitCommand(GlobalTransaction gtx)
buildRollbackCommand
RollbackCommand buildRollbackCommand(GlobalTransaction gtx)
initializeReplicableCommand
void initializeReplicableCommand(ReplicableCommand command)
- Initializes a
ReplicableCommand
read from a data stream with components specific
to the target cache instance.
Implementations should also be deep, in that if the command contains other commands, these should be recursed
into.
- Parameters:
command
- command to initialize. Cannot be null.
buildReplicateCommand
MultipleRpcCommand buildReplicateCommand(List<ReplicableCommand> toReplicate)
buildSingleRpcCommand
SingleRpcCommand buildSingleRpcCommand(ReplicableCommand call)
buildStateTransferControlCommand
StateTransferControlCommand buildStateTransferControlCommand(boolean block)
buildClusteredGetCommand
ClusteredGetCommand buildClusteredGetCommand(Object key)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.