Package org.infinispan.commands
Class CommandsFactoryImpl
- java.lang.Object
-
- org.infinispan.commands.CommandsFactoryImpl
-
- All Implemented Interfaces:
CommandsFactory
public class CommandsFactoryImpl extends Object implements CommandsFactory
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com, Galder ZamarreƱo, Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description CommandsFactoryImpl()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.CommandsFactory
buildSingleRpcCommand
-
-
-
-
Method Detail
-
start
public void start()
-
buildPutKeyValueCommand
public PutKeyValueCommand buildPutKeyValueCommand(Object key, Object value, int segment, Metadata metadata, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a PutKeyValueCommand- Specified by:
buildPutKeyValueCommandin interfaceCommandsFactory- Parameters:
key- key to putvalue- value to putsegment- the segment of the given keymetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a PutKeyValueCommand
-
buildRemoveCommand
public RemoveCommand buildRemoveCommand(Object key, Object value, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a RemoveCommand- Specified by:
buildRemoveCommandin interfaceCommandsFactory- Parameters:
key- key to removevalue- value to check for ina conditional remove, or null for an unconditional remove.segment- the segment of the given keyflagsBitSet- Command flags provided by cache- Returns:
- a RemoveCommand
-
buildInvalidateCommand
public InvalidateCommand buildInvalidateCommand(long flagsBitSet, Object... keys)
Description copied from interface:CommandsFactoryBuilds an InvalidateCommand- Specified by:
buildInvalidateCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cachekeys- keys to invalidate- Returns:
- an InvalidateCommand
-
buildInvalidateFromL1Command
public InvalidateCommand buildInvalidateFromL1Command(long flagsBitSet, Collection<Object> keys)
Description copied from interface:CommandsFactoryBuilds an InvalidateFromL1Command- Specified by:
buildInvalidateFromL1Commandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cachekeys- keys to invalidate- Returns:
- an InvalidateFromL1Command
-
buildInvalidateFromL1Command
public InvalidateCommand buildInvalidateFromL1Command(Address origin, long flagsBitSet, Collection<Object> keys)
- Specified by:
buildInvalidateFromL1Commandin interfaceCommandsFactory- See Also:
CommandsFactory.buildInvalidateFromL1Command(long, Collection)
-
buildRemoveExpiredCommand
public RemoveExpiredCommand buildRemoveExpiredCommand(Object key, Object value, int segment, Long lifespan, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds an expired remove command that is used to remove only a specific entry when it expires via lifespan- Specified by:
buildRemoveExpiredCommandin interfaceCommandsFactory- Parameters:
key- the key of the expired entryvalue- the value of the entry when it was expiredsegment- the segment of the given keylifespan- the lifespan that expired from the commandflagsBitSet- Command flags provided by cache- Returns:
- a RemovedExpiredCommand
-
buildRemoveExpiredCommand
public RemoveExpiredCommand buildRemoveExpiredCommand(Object key, Object value, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds an expired remove command that is used to remove only a specific entry when it expires via maxIdle- Specified by:
buildRemoveExpiredCommandin interfaceCommandsFactory- Parameters:
key- the key of the expired entryvalue- the value of the entry when it was expiredsegment- the segment of the given keyflagsBitSet- Command flags provided by cache- Returns:
- a RemovedExpiredCommand
-
buildReplaceCommand
public ReplaceCommand buildReplaceCommand(Object key, Object oldValue, Object newValue, int segment, Metadata metadata, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a ReplaceCommand- Specified by:
buildReplaceCommandin interfaceCommandsFactory- Parameters:
key- key to replaceoldValue- existing value to check for if conditional, null if unconditional.newValue- value to replace withsegment- the segment of the given keymetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a ReplaceCommand
-
buildComputeCommand
public ComputeCommand buildComputeCommand(Object key, BiFunction mappingFunction, boolean computeIfPresent, int segment, Metadata metadata, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a ComputeCommand- Specified by:
buildComputeCommandin interfaceCommandsFactory- Parameters:
key- key to compute if this key is absentmappingFunction- BiFunction for the key and the valuecomputeIfPresent- flag to apply as computeIfPresent modesegment- the segment of the given keymetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a ComputeCommand
-
buildComputeIfAbsentCommand
public ComputeIfAbsentCommand buildComputeIfAbsentCommand(Object key, Function mappingFunction, int segment, Metadata metadata, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a ComputeIfAbsentCommand- Specified by:
buildComputeIfAbsentCommandin interfaceCommandsFactory- Parameters:
key- key to compute if this key is absentmappingFunction- mappingFunction for the keysegment- the segment of the given keymetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a ComputeCommand
-
buildSizeCommand
public SizeCommand buildSizeCommand(long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a SizeCommand- Specified by:
buildSizeCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a SizeCommand
-
buildKeySetCommand
public KeySetCommand buildKeySetCommand(long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a KeySetCommand- Specified by:
buildKeySetCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a KeySetCommand
-
buildEntrySetCommand
public EntrySetCommand buildEntrySetCommand(long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a EntrySetCommand- Specified by:
buildEntrySetCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a EntrySetCommand
-
buildGetKeyValueCommand
public GetKeyValueCommand buildGetKeyValueCommand(Object key, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a GetKeyValueCommand- Specified by:
buildGetKeyValueCommandin interfaceCommandsFactory- Parameters:
key- key to getsegment- the segment of the given keyflagsBitSet- Command flags provided by cache- Returns:
- a GetKeyValueCommand
-
buildGetAllCommand
public GetAllCommand buildGetAllCommand(Collection<?> keys, long flagsBitSet, boolean returnEntries)
Description copied from interface:CommandsFactoryBuilds a GetAllCommand- Specified by:
buildGetAllCommandin interfaceCommandsFactory- Parameters:
keys- keys to getflagsBitSet- Command flags provided by cachereturnEntries- boolean indicating whether entire cache entries are returned, otherwise return just the value parts- Returns:
- a GetKeyValueCommand
-
buildPutMapCommand
public PutMapCommand buildPutMapCommand(Map<?,?> map, Metadata metadata, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a PutMapCommand- Specified by:
buildPutMapCommandin interfaceCommandsFactory- Parameters:
map- map containing key/value entries to putmetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a PutMapCommand
-
buildClearCommand
public ClearCommand buildClearCommand(long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a ClearCommand- Specified by:
buildClearCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a ClearCommand
-
buildEvictCommand
public EvictCommand buildEvictCommand(Object key, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds an EvictCommand- Specified by:
buildEvictCommandin interfaceCommandsFactory- Parameters:
key- key to evictsegment- the segment for the keyflagsBitSet- Command flags provided by cache- Returns:
- an EvictCommand
-
buildPrepareCommand
public PrepareCommand buildPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhaseCommit)
Description copied from interface:CommandsFactoryBuilds a PrepareCommand- Specified by:
buildPrepareCommandin interfaceCommandsFactory- Parameters:
gtx- global transaction associated with the preparemodifications- list of modificationsonePhaseCommit- is this a one-phase or two-phase transaction?- Returns:
- a PrepareCommand
-
buildVersionedPrepareCommand
public VersionedPrepareCommand buildVersionedPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase)
Description copied from interface:CommandsFactoryBuilds a VersionedPrepareCommand- Specified by:
buildVersionedPrepareCommandin interfaceCommandsFactory- Parameters:
gtx- global transaction associated with the preparemodifications- list of modifications- Returns:
- a VersionedPrepareCommand
-
buildCommitCommand
public CommitCommand buildCommitCommand(GlobalTransaction gtx)
Description copied from interface:CommandsFactoryBuilds a CommitCommand- Specified by:
buildCommitCommandin interfaceCommandsFactory- Parameters:
gtx- global transaction associated with the commit- Returns:
- a CommitCommand
-
buildVersionedCommitCommand
public VersionedCommitCommand buildVersionedCommitCommand(GlobalTransaction gtx)
Description copied from interface:CommandsFactoryBuilds a VersionedCommitCommand- Specified by:
buildVersionedCommitCommandin interfaceCommandsFactory- Parameters:
gtx- global transaction associated with the commit- Returns:
- a VersionedCommitCommand
-
buildRollbackCommand
public RollbackCommand buildRollbackCommand(GlobalTransaction gtx)
Description copied from interface:CommandsFactoryBuilds a RollbackCommand- Specified by:
buildRollbackCommandin interfaceCommandsFactory- Parameters:
gtx- global transaction associated with the rollback- Returns:
- a RollbackCommand
-
buildSingleRpcCommand
public SingleRpcCommand buildSingleRpcCommand(VisitableCommand call)
Description copied from interface:CommandsFactoryBuilds a SingleRpcCommand "envelope" containing a single ReplicableCommand- Specified by:
buildSingleRpcCommandin interfaceCommandsFactory- Parameters:
call- VisitableCommand to include in the envelope- Returns:
- a SingleRpcCommand
-
buildClusteredGetCommand
public ClusteredGetCommand buildClusteredGetCommand(Object key, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a ClusteredGetCommand, which is a remote lookup command- Specified by:
buildClusteredGetCommandin interfaceCommandsFactory- Parameters:
key- key to look upsegment- the segment for the keyflagsBitSet- Command flags provided by cache- Returns:
- a ClusteredGetCommand
-
initializeReplicableCommand
public void initializeReplicableCommand(ReplicableCommand c, boolean isRemote)
Description copied from interface:CommandsFactoryInitializes aReplicableCommandread 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.- Specified by:
initializeReplicableCommandin interfaceCommandsFactory- Parameters:
isRemote- true if the command is deserialized and is executed remote.c- command to initialize. Cannot be null.
-
buildLockControlCommand
public LockControlCommand buildLockControlCommand(Collection<?> keys, long flagsBitSet, GlobalTransaction gtx)
Description copied from interface:CommandsFactoryBuilds a LockControlCommand to control explicit remote locking- Specified by:
buildLockControlCommandin interfaceCommandsFactory- Parameters:
keys- keys to lockflagsBitSet- Command flags provided by cache- Returns:
- a LockControlCommand
-
buildLockControlCommand
public LockControlCommand buildLockControlCommand(Object key, long flagsBitSet, GlobalTransaction gtx)
Description copied from interface:CommandsFactorySame asCommandsFactory.buildLockControlCommand(Object, long, GlobalTransaction)but for locking a single key vs a collection of keys.- Specified by:
buildLockControlCommandin interfaceCommandsFactory
-
buildLockControlCommand
public LockControlCommand buildLockControlCommand(Collection<?> keys, long flagsBitSet)
- Specified by:
buildLockControlCommandin interfaceCommandsFactory
-
buildConflictResolutionStartCommand
public ConflictResolutionStartCommand buildConflictResolutionStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildConflictResolutionStartCommandin interfaceCommandsFactory
-
buildScatteredStateConfirmRevokeCommand
public ScatteredStateConfirmRevokedCommand buildScatteredStateConfirmRevokeCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildScatteredStateConfirmRevokeCommandin interfaceCommandsFactory
-
buildScatteredStateGetKeysCommand
public ScatteredStateGetKeysCommand buildScatteredStateGetKeysCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildScatteredStateGetKeysCommandin interfaceCommandsFactory
-
buildStateTransferCancelCommand
public StateTransferCancelCommand buildStateTransferCancelCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildStateTransferCancelCommandin interfaceCommandsFactory
-
buildStateTransferGetListenersCommand
public StateTransferGetListenersCommand buildStateTransferGetListenersCommand(int topologyId)
- Specified by:
buildStateTransferGetListenersCommandin interfaceCommandsFactory
-
buildStateTransferGetTransactionsCommand
public StateTransferGetTransactionsCommand buildStateTransferGetTransactionsCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildStateTransferGetTransactionsCommandin interfaceCommandsFactory
-
buildStateTransferStartCommand
public StateTransferStartCommand buildStateTransferStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments)
- Specified by:
buildStateTransferStartCommandin interfaceCommandsFactory
-
buildStateResponseCommand
public StateResponseCommand buildStateResponseCommand(int topologyId, Collection<StateChunk> stateChunks, boolean applyState, boolean pushTransfer)
Description copied from interface:CommandsFactoryBuilds a StateResponseCommand used for pushing cache entries to another node.- Specified by:
buildStateResponseCommandin interfaceCommandsFactory
-
getCacheName
public String getCacheName()
Description copied from interface:CommandsFactoryRetrieves the cache name this CommandFactory is set up to construct commands for.- Specified by:
getCacheNamein interfaceCommandsFactory- Returns:
- the name of the cache this CommandFactory is set up to construct commands for.
-
buildGetInDoubtTransactionsCommand
public GetInDoubtTransactionsCommand buildGetInDoubtTransactionsCommand()
Description copied from interface:CommandsFactoryBuilds aGetInDoubtTransactionsCommand.- Specified by:
buildGetInDoubtTransactionsCommandin interfaceCommandsFactory
-
buildTxCompletionNotificationCommand
public TxCompletionNotificationCommand buildTxCompletionNotificationCommand(org.infinispan.commons.tx.XidImpl xid, GlobalTransaction globalTransaction)
Description copied from interface:CommandsFactoryBuilds aTxCompletionNotificationCommand.- Specified by:
buildTxCompletionNotificationCommandin interfaceCommandsFactory
-
buildTxCompletionNotificationCommand
public TxCompletionNotificationCommand buildTxCompletionNotificationCommand(long internalId)
- Specified by:
buildTxCompletionNotificationCommandin interfaceCommandsFactory- Parameters:
internalId- the internal id identifying the transaction to be removed.- See Also:
TxCompletionNotificationCommand
-
buildGetInDoubtTxInfoCommand
public GetInDoubtTxInfoCommand buildGetInDoubtTxInfoCommand()
- Specified by:
buildGetInDoubtTxInfoCommandin interfaceCommandsFactory- See Also:
GetInDoubtTxInfoCommand
-
buildCompleteTransactionCommand
public CompleteTransactionCommand buildCompleteTransactionCommand(org.infinispan.commons.tx.XidImpl xid, boolean commit)
Description copied from interface:CommandsFactoryBuilds a CompleteTransactionCommand command.- Specified by:
buildCompleteTransactionCommandin interfaceCommandsFactory- Parameters:
xid- the xid identifying the transaction we want to complete.commit- commit(true) or rollback(false)?
-
buildXSiteStateTransferCancelSendCommand
public XSiteStateTransferCancelSendCommand buildXSiteStateTransferCancelSendCommand(String siteName)
- Specified by:
buildXSiteStateTransferCancelSendCommandin interfaceCommandsFactory
-
buildXSiteStateTransferClearStatusCommand
public XSiteStateTransferClearStatusCommand buildXSiteStateTransferClearStatusCommand()
- Specified by:
buildXSiteStateTransferClearStatusCommandin interfaceCommandsFactory
-
buildXSiteStateTransferFinishReceiveCommand
public XSiteStateTransferFinishReceiveCommand buildXSiteStateTransferFinishReceiveCommand(String siteName)
- Specified by:
buildXSiteStateTransferFinishReceiveCommandin interfaceCommandsFactory
-
buildXSiteStateTransferFinishSendCommand
public XSiteStateTransferFinishSendCommand buildXSiteStateTransferFinishSendCommand(String siteName, boolean statusOk)
- Specified by:
buildXSiteStateTransferFinishSendCommandin interfaceCommandsFactory
-
buildXSiteStateTransferRestartSendingCommand
public XSiteStateTransferRestartSendingCommand buildXSiteStateTransferRestartSendingCommand(String siteName, int topologyId)
- Specified by:
buildXSiteStateTransferRestartSendingCommandin interfaceCommandsFactory
-
buildXSiteStateTransferStartReceiveCommand
public XSiteStateTransferStartReceiveCommand buildXSiteStateTransferStartReceiveCommand(String siteName)
- Specified by:
buildXSiteStateTransferStartReceiveCommandin interfaceCommandsFactory
-
buildXSiteStateTransferStartSendCommand
public XSiteStateTransferStartSendCommand buildXSiteStateTransferStartSendCommand(String siteName, int topologyId)
- Specified by:
buildXSiteStateTransferStartSendCommandin interfaceCommandsFactory
-
buildXSiteStateTransferStatusRequestCommand
public XSiteStateTransferStatusRequestCommand buildXSiteStateTransferStatusRequestCommand()
- Specified by:
buildXSiteStateTransferStatusRequestCommandin interfaceCommandsFactory
-
buildXSiteAmendOfflineStatusCommand
public XSiteAmendOfflineStatusCommand buildXSiteAmendOfflineStatusCommand(String siteName, Integer afterFailures, Long minTimeToWait)
- Specified by:
buildXSiteAmendOfflineStatusCommandin interfaceCommandsFactory
-
buildXSiteBringOnlineCommand
public XSiteBringOnlineCommand buildXSiteBringOnlineCommand(String siteName)
- Specified by:
buildXSiteBringOnlineCommandin interfaceCommandsFactory
-
buildXSiteOfflineStatusCommand
public XSiteOfflineStatusCommand buildXSiteOfflineStatusCommand(String siteName)
- Specified by:
buildXSiteOfflineStatusCommandin interfaceCommandsFactory
-
buildXSiteStatusCommand
public XSiteStatusCommand buildXSiteStatusCommand()
- Specified by:
buildXSiteStatusCommandin interfaceCommandsFactory
-
buildXSiteTakeOfflineCommand
public XSiteTakeOfflineCommand buildXSiteTakeOfflineCommand(String siteName)
- Specified by:
buildXSiteTakeOfflineCommandin interfaceCommandsFactory
-
buildXSiteStatePushCommand
public XSiteStatePushCommand buildXSiteStatePushCommand(XSiteState[] chunk, long timeoutMillis)
Description copied from interface:CommandsFactoryBuilds XSiteStatePushCommand used to transfer a single chunk of data between sites.- Specified by:
buildXSiteStatePushCommandin interfaceCommandsFactory- Parameters:
chunk- the data chunktimeoutMillis- timeout in milliseconds, for the retries in the receiver site.- Returns:
- the XSiteStatePushCommand created
-
buildSingleXSiteRpcCommand
public SingleXSiteRpcCommand buildSingleXSiteRpcCommand(VisitableCommand command)
Description copied from interface:CommandsFactoryBuilds SingleRpcCommand used to performVisitableCommandon the backup site,- Specified by:
buildSingleXSiteRpcCommandin interfaceCommandsFactory- Parameters:
command- the visitable command.- Returns:
- the SingleXSiteRpcCommand created
-
buildGetKeysInGroupCommand
public GetKeysInGroupCommand buildGetKeysInGroupCommand(long flagsBitSet, Object groupName)
Description copied from interface:CommandsFactoryBuildsGetKeysInGroupCommandused to fetch all the keys belonging to a group.- Specified by:
buildGetKeysInGroupCommandin interfaceCommandsFactory- Parameters:
flagsBitSet- Command flags provided by cachegroupName- the group name.- Returns:
- the GetKeysInGroup created.
-
buildGetCacheEntryCommand
public GetCacheEntryCommand buildGetCacheEntryCommand(Object key, int segment, long flagsBitSet)
Description copied from interface:CommandsFactoryBuilds a GetCacheEntryCommand- Specified by:
buildGetCacheEntryCommandin interfaceCommandsFactory- Parameters:
key- key to getsegment- the segment for the keyflagsBitSet- Command flags provided by cache- Returns:
- a GetCacheEntryCommand
-
buildClusteredGetAllCommand
public ClusteredGetAllCommand buildClusteredGetAllCommand(List<?> keys, long flagsBitSet, GlobalTransaction gtx)
Description copied from interface:CommandsFactoryBuilds a ClusteredGetAllCommand, which is a remote lookup command- Specified by:
buildClusteredGetAllCommandin interfaceCommandsFactory- Parameters:
keys- key to look upflagsBitSet- Command flags provided by cache- Returns:
- a ClusteredGetAllCommand
-
buildReadOnlyKeyCommand
public <K,V,R> ReadOnlyKeyCommand<K,V,R> buildReadOnlyKeyCommand(Object key, Function<EntryView.ReadEntryView<K,V>,R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadOnlyKeyCommandin interfaceCommandsFactory
-
buildReadOnlyManyCommand
public <K,V,R> ReadOnlyManyCommand<K,V,R> buildReadOnlyManyCommand(Collection<?> keys, Function<EntryView.ReadEntryView<K,V>,R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadOnlyManyCommandin interfaceCommandsFactory
-
buildReadWriteKeyValueCommand
public <K,V,T,R> ReadWriteKeyValueCommand<K,V,T,R> buildReadWriteKeyValueCommand(Object key, Object argument, BiFunction<T,EntryView.ReadWriteEntryView<K,V>,R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadWriteKeyValueCommandin interfaceCommandsFactory
-
buildReadWriteKeyCommand
public <K,V,R> ReadWriteKeyCommand<K,V,R> buildReadWriteKeyCommand(Object key, Function<EntryView.ReadWriteEntryView<K,V>,R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadWriteKeyCommandin interfaceCommandsFactory
-
buildReadWriteManyCommand
public <K,V,R> ReadWriteManyCommand<K,V,R> buildReadWriteManyCommand(Collection<?> keys, Function<EntryView.ReadWriteEntryView<K,V>,R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadWriteManyCommandin interfaceCommandsFactory
-
buildReadWriteManyEntriesCommand
public <K,V,T,R> ReadWriteManyEntriesCommand<K,V,T,R> buildReadWriteManyEntriesCommand(Map<?,?> entries, BiFunction<T,EntryView.ReadWriteEntryView<K,V>,R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildReadWriteManyEntriesCommandin interfaceCommandsFactory
-
buildInvalidateVersionsCommand
public InvalidateVersionsCommand buildInvalidateVersionsCommand(int topologyId, Object[] keys, int[] topologyIds, long[] versions, boolean removed)
- Specified by:
buildInvalidateVersionsCommandin interfaceCommandsFactory
-
buildWriteOnlyKeyCommand
public <K,V> WriteOnlyKeyCommand<K,V> buildWriteOnlyKeyCommand(Object key, Consumer<EntryView.WriteEntryView<K,V>> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildWriteOnlyKeyCommandin interfaceCommandsFactory
-
buildWriteOnlyKeyValueCommand
public <K,V,T> WriteOnlyKeyValueCommand<K,V,T> buildWriteOnlyKeyValueCommand(Object key, Object argument, BiConsumer<T,EntryView.WriteEntryView<K,V>> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildWriteOnlyKeyValueCommandin interfaceCommandsFactory
-
buildWriteOnlyManyCommand
public <K,V> WriteOnlyManyCommand<K,V> buildWriteOnlyManyCommand(Collection<?> keys, Consumer<EntryView.WriteEntryView<K,V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildWriteOnlyManyCommandin interfaceCommandsFactory
-
buildWriteOnlyManyEntriesCommand
public <K,V,T> WriteOnlyManyEntriesCommand<K,V,T> buildWriteOnlyManyEntriesCommand(Map<?,?> arguments, BiConsumer<T,EntryView.WriteEntryView<K,V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildWriteOnlyManyEntriesCommandin interfaceCommandsFactory
-
buildTxReadOnlyKeyCommand
public <K,V,R> TxReadOnlyKeyCommand<K,V,R> buildTxReadOnlyKeyCommand(Object key, Function<EntryView.ReadEntryView<K,V>,R> f, List<Mutation<K,V,?>> mutations, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildTxReadOnlyKeyCommandin interfaceCommandsFactory
-
buildTxReadOnlyManyCommand
public <K,V,R> TxReadOnlyManyCommand<K,V,R> buildTxReadOnlyManyCommand(Collection<?> keys, List<List<Mutation<K,V,?>>> mutations, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
- Specified by:
buildTxReadOnlyManyCommandin interfaceCommandsFactory
-
buildBackupAckCommand
public BackupAckCommand buildBackupAckCommand(long id, int topologyId)
- Specified by:
buildBackupAckCommandin interfaceCommandsFactory
-
buildBackupMultiKeyAckCommand
public BackupMultiKeyAckCommand buildBackupMultiKeyAckCommand(long id, int segment, int topologyId)
- Specified by:
buildBackupMultiKeyAckCommandin interfaceCommandsFactory
-
buildExceptionAckCommand
public ExceptionAckCommand buildExceptionAckCommand(long id, Throwable throwable, int topologyId)
- Specified by:
buildExceptionAckCommandin interfaceCommandsFactory
-
buildRevokeBiasCommand
public RevokeBiasCommand buildRevokeBiasCommand(Address ackTarget, long id, int topologyId, Collection<Object> keys)
- Specified by:
buildRevokeBiasCommandin interfaceCommandsFactory
-
buildRenewBiasCommand
public RenewBiasCommand buildRenewBiasCommand(Object[] keys)
- Specified by:
buildRenewBiasCommandin interfaceCommandsFactory
-
buildSingleKeyBackupWriteCommand
public SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand()
- Specified by:
buildSingleKeyBackupWriteCommandin interfaceCommandsFactory
-
buildSingleKeyFunctionalBackupWriteCommand
public SingleKeyFunctionalBackupWriteCommand buildSingleKeyFunctionalBackupWriteCommand()
- Specified by:
buildSingleKeyFunctionalBackupWriteCommandin interfaceCommandsFactory
-
buildPutMapBackupWriteCommand
public PutMapBackupWriteCommand buildPutMapBackupWriteCommand()
- Specified by:
buildPutMapBackupWriteCommandin interfaceCommandsFactory
-
buildMultiEntriesFunctionalBackupWriteCommand
public MultiEntriesFunctionalBackupWriteCommand buildMultiEntriesFunctionalBackupWriteCommand()
- Specified by:
buildMultiEntriesFunctionalBackupWriteCommandin interfaceCommandsFactory
-
buildMultiKeyFunctionalBackupWriteCommand
public MultiKeyFunctionalBackupWriteCommand buildMultiKeyFunctionalBackupWriteCommand()
- Specified by:
buildMultiKeyFunctionalBackupWriteCommandin interfaceCommandsFactory
-
buildKeyReductionPublisherCommand
public <K,R> ReductionPublisherRequestCommand<K> buildKeyReductionPublisherCommand(boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, boolean includeLoader, Function<? super org.reactivestreams.Publisher<K>,? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>,? extends CompletionStage<R>> finalizer)
- Specified by:
buildKeyReductionPublisherCommandin interfaceCommandsFactory
-
buildEntryReductionPublisherCommand
public <K,V,R> ReductionPublisherRequestCommand<K> buildEntryReductionPublisherCommand(boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, boolean includeLoader, Function<? super org.reactivestreams.Publisher<CacheEntry<K,V>>,? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>,? extends CompletionStage<R>> finalizer)
- Specified by:
buildEntryReductionPublisherCommandin interfaceCommandsFactory
-
buildInitialPublisherCommand
public <K,I,R> InitialPublisherCommand<K,I,R> buildInitialPublisherCommand(String requestId, DeliveryGuarantee deliveryGuarantee, int batchSize, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, boolean includeLoader, boolean entryStream, boolean trackKeys, Function<? super org.reactivestreams.Publisher<I>,? extends org.reactivestreams.Publisher<R>> transformer)
- Specified by:
buildInitialPublisherCommandin interfaceCommandsFactory
-
buildNextPublisherCommand
public NextPublisherCommand buildNextPublisherCommand(String requestId)
- Specified by:
buildNextPublisherCommandin interfaceCommandsFactory
-
buildCancelPublisherCommand
public CancelPublisherCommand buildCancelPublisherCommand(String requestId)
- Specified by:
buildCancelPublisherCommandin interfaceCommandsFactory
-
buildMultiClusterEventCommand
public <K,V> MultiClusterEventCommand<K,V> buildMultiClusterEventCommand(Map<UUID,Collection<ClusterEvent<K,V>>> events)
- Specified by:
buildMultiClusterEventCommandin interfaceCommandsFactory
-
buildCheckTransactionRpcCommand
public CheckTransactionRpcCommand buildCheckTransactionRpcCommand(Collection<GlobalTransaction> globalTransactions)
- Specified by:
buildCheckTransactionRpcCommandin interfaceCommandsFactory
-
buildTouchCommand
public TouchCommand buildTouchCommand(Object key, int segment)
- Specified by:
buildTouchCommandin interfaceCommandsFactory
-
buildIracPutKeyCommand
public <K,V> IracPutKeyCommand buildIracPutKeyCommand(InternalCacheEntry<K,V> entry)
- Specified by:
buildIracPutKeyCommandin interfaceCommandsFactory
-
buildIracRemoveKeyCommand
public IracRemoveKeyCommand buildIracRemoveKeyCommand(Object key, IracMetadata iracMetadata)
- Specified by:
buildIracRemoveKeyCommandin interfaceCommandsFactory
-
buildIracClearKeysCommand
public IracClearKeysCommand buildIracClearKeysCommand()
- Specified by:
buildIracClearKeysCommandin interfaceCommandsFactory
-
buildIracCleanupKeyCommand
public IracCleanupKeyCommand buildIracCleanupKeyCommand(Object key, Object lockOwner, IracMetadata tombstone)
- Specified by:
buildIracCleanupKeyCommandin interfaceCommandsFactory
-
buildIracMetadataRequestCommand
public IracMetadataRequestCommand buildIracMetadataRequestCommand(int segment)
- Specified by:
buildIracMetadataRequestCommandin interfaceCommandsFactory
-
buildIracRequestStateCommand
public IracRequestStateCommand buildIracRequestStateCommand(org.infinispan.commons.util.IntSet segments)
- Specified by:
buildIracRequestStateCommandin interfaceCommandsFactory
-
buildIracStateResponseCommand
public IracStateResponseCommand buildIracStateResponseCommand(Object key, Object lockOwner, IracMetadata tombstone)
- Specified by:
buildIracStateResponseCommandin interfaceCommandsFactory
-
-