Interface CommandsFactory
- All Known Implementing Classes:
CommandsFactoryImpl
public interface CommandsFactory
A factory to build commands, initializing and injecting dependencies accordingly. Commands built for a specific,
named cache instance cannot be reused on a different cache instance since most commands contain the cache name it was
built for along with references to other named-cache scoped components.
- Since:
- 4.0
- Author:
- Manik Surtani, Mircea.Markus@jboss.com, Galder ZamarreƱo
-
Method Summary
Modifier and TypeMethodDescriptionbuildBackupMultiKeyAckCommand(long id, int segment, int topologyId) buildBackupNoopCommand(WriteCommand command, long sequence, int segmentId) org.infinispan.reactive.publisher.impl.commands.batch.CancelPublisherCommandbuildCancelPublisherCommand(String requestId) buildCheckTransactionRpcCommand(Collection<GlobalTransaction> globalTransactions) buildClearCommand(long flagsBitSet) Builds a ClearCommandbuildClusteredGetAllCommand(List<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a ClusteredGetAllCommand, which is a remote lookup commandbuildClusteredGetCommand(Object key, Integer segment, long flagsBitSet) Builds a ClusteredGetCommand, which is a remote lookup commandBuilds a CommitCommandbuildCompleteTransactionCommand(org.infinispan.commons.tx.XidImpl xid, boolean commit) Builds a CompleteTransactionCommand command.buildComputeCommand(Object key, BiFunction mappingFunction, boolean computeIfPresent, int segment, Metadata metadata, long flagsBitSet) Builds a ComputeCommandbuildComputeIfAbsentCommand(Object key, Function mappingFunction, int segment, Metadata metadata, long flagsBitSet) Builds a ComputeIfAbsentCommandbuildConflictResolutionStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments) <K,V, R> org.infinispan.reactive.publisher.impl.commands.reduction.ReductionPublisherRequestCommand <K> buildEntryReductionPublisherCommand(boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, Function<? super org.reactivestreams.Publisher<CacheEntry<K, V>>, ? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>, ? extends CompletionStage<R>> finalizer) buildEntrySetCommand(long flagsBitSet) Builds a EntrySetCommandbuildEvictCommand(Object key, int segment, long flagsBitSet) Builds an EvictCommandbuildExceptionAckCommand(long id, Throwable throwable, int topologyId) buildGetAllCommand(Collection<?> keys, long flagsBitSet, boolean returnEntries) Builds a GetAllCommandbuildGetCacheEntryCommand(Object key, int segment, long flagsBitSet) Builds a GetCacheEntryCommandBuilds aGetInDoubtTransactionsCommand.buildGetKeyValueCommand(Object key, int segment, long flagsBitSet) Builds a GetKeyValueCommand<K,I, R> org.infinispan.reactive.publisher.impl.commands.batch.InitialPublisherCommand <K, I, R> buildInitialPublisherCommand(String requestId, DeliveryGuarantee deliveryGuarantee, int batchSize, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, boolean entryStream, boolean trackKeys, Function<? super org.reactivestreams.Publisher<I>, ? extends org.reactivestreams.Publisher<R>> transformer) buildInvalidateCommand(long flagsBitSet, Object... keys) Builds an InvalidateCommandbuildInvalidateFromL1Command(long flagsBitSet, Collection<Object> keys) Builds an InvalidateFromL1CommandbuildInvalidateFromL1Command(Address origin, long flagsBitSet, Collection<Object> keys) buildIracMetadataRequestCommand(int segment, IracEntryVersion versionSeen) buildIracPutKeyValueCommand(Object key, int segment, Object value, Metadata metadata, PrivateMetadata privateMetadata) buildIracPutManyCommand(int capacity) buildIracRequestStateCommand(org.infinispan.commons.util.IntSet segments) buildIracStateResponseCommand(int capacity) buildIracTombstoneCleanupCommand(int maxCapacity) buildIracUpdateVersionCommand(Map<Integer, IracEntryVersion> segmentsVersion) <K,R> org.infinispan.reactive.publisher.impl.commands.reduction.ReductionPublisherRequestCommand <K> buildKeyReductionPublisherCommand(boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, Function<? super org.reactivestreams.Publisher<K>, ? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>, ? extends CompletionStage<R>> finalizer) buildKeySetCommand(long flagsBitSet) Builds a KeySetCommandbuildLockControlCommand(Object key, long flagsBitSet, GlobalTransaction gtx) Same asbuildLockControlCommand(Collection, long, GlobalTransaction)but for locking a single key vs a collection of keys.buildLockControlCommand(Collection<?> keys, long flagsBitSet) buildLockControlCommand(Collection<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a LockControlCommand to control explicit remote locking<K,V> MultiClusterEventCommand <K, V> buildMultiClusterEventCommand(Map<UUID, Collection<ClusterEvent<K, V>>> events) <K,V, T, R> MultiEntriesFunctionalBackupWriteCommand buildMultiEntriesFunctionalBackupWriteCommand(ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys, long sequence, int segmentId) buildMultiEntriesFunctionalBackupWriteCommand(WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys, long sequence, int segmentId) buildMultiKeyFunctionalBackupWriteCommand(ReadWriteManyCommand<K, V, R> command, Collection<Object> keys, long sequence, int segmentId) buildMultiKeyFunctionalBackupWriteCommand(WriteOnlyManyCommand<K, V> command, Collection<Object> keys, long sequence, int segmentId) org.infinispan.reactive.publisher.impl.commands.batch.NextPublisherCommandbuildNextPublisherCommand(String requestId) buildPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhaseCommit) Builds a PrepareCommanddefault PutKeyValueCommandbuildPutKeyValueCommand(Object key, Object value, int segment, Metadata metadata, long flagsBitSet) Builds a PutKeyValueCommandbuildPutKeyValueCommand(Object key, Object value, int segment, Metadata metadata, long flagsBitSet, boolean returnEntry) buildPutMapBackupWriteCommand(PutMapCommand command, Collection<Object> keys, long sequence, int segmentId) buildPutMapCommand(Map<?, ?> map, Metadata metadata, long flagsBitSet) Builds a PutMapCommand<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) <K,V, R> ReadOnlyManyCommand <K, V, R> buildReadOnlyManyCommand(Collection<?> keys, Function<EntryView.ReadEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <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) <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) <K,V, R> ReadWriteManyCommand <K, V, R> buildReadWriteManyCommand(Collection<?> keys, Function<EntryView.ReadWriteEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <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) default RemoveCommandbuildRemoveCommand(Object key, Object value, int segment, long flagsBitSet) Builds a RemoveCommandbuildRemoveCommand(Object key, Object value, int segment, long flagsBitSet, boolean returnEntry) buildRemoveExpiredCommand(Object key, Object value, int segment, long flagsBitSet) Builds an expired remove command that is used to remove only a specific entry when it expires via maxIdlebuildRemoveExpiredCommand(Object key, Object value, int segment, Long lifespan, long flagsBitSet) Builds an expired remove command that is used to remove only a specific entry when it expires via lifespandefault ReplaceCommandbuildReplaceCommand(Object key, Object oldValue, Object newValue, int segment, Metadata metadata, long flagsBitSet) Builds a ReplaceCommandbuildReplaceCommand(Object key, Object oldValue, Object newValue, int segment, Metadata metadata, long flagsBitSet, boolean returnEntry) Builds a ReplaceCommandBuilds a RollbackCommandbuildSingleKeyBackupWriteCommand(ReadWriteKeyCommand<K, V, R> command, long sequence, int segmentId) <K,V, T, R> SingleKeyFunctionalBackupWriteCommand buildSingleKeyBackupWriteCommand(ReadWriteKeyValueCommand<K, V, T, R> command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(WriteOnlyKeyCommand<K, V> command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(WriteOnlyKeyValueCommand<K, V, T> command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(ComputeCommand command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(ComputeIfAbsentCommand command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(IracPutKeyValueCommand command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(PutKeyValueCommand command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(RemoveCommand command, long sequence, int segmentId) buildSingleKeyBackupWriteCommand(ReplaceCommand command, long sequence, int segmentId) Builds SingleRpcCommand used to performVisitableCommandon the backup site,buildSizeCommand(org.infinispan.commons.util.IntSet segments, long flagsBitSet) Builds a SizeCommandbuildStateResponseCommand(int viewId, Collection<StateChunk> stateChunks, boolean applyState) Builds a StateResponseCommand used for pushing cache entries to another node.buildStateTransferCancelCommand(int topologyId, org.infinispan.commons.util.IntSet segments) buildStateTransferGetListenersCommand(int topologyId) buildStateTransferGetTransactionsCommand(int topologyId, org.infinispan.commons.util.IntSet segments) buildStateTransferStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments) buildTouchCommand(Object key, int segment, boolean touchEvenIfExpired, long flagBitSet) buildTxCompletionNotificationCommand(long internalId) buildTxCompletionNotificationCommand(org.infinispan.commons.tx.XidImpl xid, GlobalTransaction globalTransaction) Builds aTxCompletionNotificationCommand.<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) <K,V, R> TxReadOnlyManyCommand <K, V, R> buildTxReadOnlyManyCommand(Collection<?> keys, List<List<Mutation<K, V, ?>>> mutations, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) Builds a VersionedCommitCommandbuildVersionedPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase) Builds a VersionedPrepareCommand<K,V> WriteOnlyKeyCommand <K, V> buildWriteOnlyKeyCommand(Object key, Consumer<EntryView.WriteEntryView<K, V>> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <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) <K,V> WriteOnlyManyCommand <K, V> buildWriteOnlyManyCommand(Collection<?> keys, Consumer<EntryView.WriteEntryView<K, V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,V, T> WriteOnlyManyEntriesCommand <K, V, T> buildWriteOnlyManyEntriesCommand(Map<?, ?> arguments, BiConsumer<T, EntryView.WriteEntryView<K, V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) buildXSiteAmendOfflineStatusCommand(String siteName, Integer afterFailures, Long minTimeToWait) buildXSiteStatePushCommand(List<XSiteState> chunk) Builds XSiteStatePushCommand used to transfer a single chunk of data between sites.default XSiteStatePushCommandbuildXSiteStatePushCommand(XSiteState[] chunk) Deprecated, for removal: This API element is subject to removal in a future version.buildXSiteStatePushRequest(List<XSiteState> chunk, long timeoutMillis) default XSiteStatePushRequestbuildXSiteStatePushRequest(XSiteState[] chunk, long timeoutMillis) Deprecated, for removal: This API element is subject to removal in a future version.since 16.0, usebuildXSiteStatePushRequest(List, long)insteadbuildXSiteStateTransferControlRequest(boolean startReceiving) buildXSiteStateTransferFinishSendCommand(String siteName, boolean statusOk) buildXSiteStateTransferRestartSendingCommand(String siteName, int topologyId) buildXSiteStateTransferStartSendCommand(String siteName, int topologyId) Retrieves the cache name this CommandFactory is set up to construct commands for.
-
Method Details
-
buildPutKeyValueCommand
default PutKeyValueCommand buildPutKeyValueCommand(Object key, Object value, int segment, Metadata metadata, long flagsBitSet) Builds a PutKeyValueCommand- 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
-
buildPutKeyValueCommand
PutKeyValueCommand buildPutKeyValueCommand(Object key, Object value, int segment, Metadata metadata, long flagsBitSet, boolean returnEntry) -
buildRemoveCommand
Builds a RemoveCommand- 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
-
buildRemoveCommand
RemoveCommand buildRemoveCommand(Object key, Object value, int segment, long flagsBitSet, boolean returnEntry) -
buildInvalidateCommand
Builds an InvalidateCommand- Parameters:
flagsBitSet- Command flags provided by cachekeys- keys to invalidate- Returns:
- an InvalidateCommand
-
buildInvalidateFromL1Command
Builds an InvalidateFromL1Command- Parameters:
flagsBitSet- Command flags provided by cachekeys- keys to invalidate- Returns:
- an InvalidateFromL1Command
-
buildInvalidateFromL1Command
InvalidateCommand buildInvalidateFromL1Command(Address origin, long flagsBitSet, Collection<Object> keys) - See Also:
-
buildRemoveExpiredCommand
RemoveExpiredCommand buildRemoveExpiredCommand(Object key, Object value, int segment, Long lifespan, long flagsBitSet) Builds an expired remove command that is used to remove only a specific entry when it expires via lifespan- 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
RemoveExpiredCommand buildRemoveExpiredCommand(Object key, Object value, int segment, long flagsBitSet) Builds an expired remove command that is used to remove only a specific entry when it expires via maxIdle- 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
default ReplaceCommand buildReplaceCommand(Object key, Object oldValue, Object newValue, int segment, Metadata metadata, long flagsBitSet) Builds a ReplaceCommand- 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
-
buildReplaceCommand
ReplaceCommand buildReplaceCommand(Object key, Object oldValue, Object newValue, int segment, Metadata metadata, long flagsBitSet, boolean returnEntry) Builds a ReplaceCommand- 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 cachereturnEntry- true if theCacheEntryis the command response, otherwise returns previous value.- Returns:
- a ReplaceCommand
-
buildComputeCommand
ComputeCommand buildComputeCommand(Object key, BiFunction mappingFunction, boolean computeIfPresent, int segment, Metadata metadata, long flagsBitSet) Builds a ComputeCommand- 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
ComputeIfAbsentCommand buildComputeIfAbsentCommand(Object key, Function mappingFunction, int segment, Metadata metadata, long flagsBitSet) Builds a ComputeIfAbsentCommand- 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
Builds a SizeCommand- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a SizeCommand
-
buildGetKeyValueCommand
Builds a GetKeyValueCommand- Parameters:
key- key to getsegment- the segment of the given keyflagsBitSet- Command flags provided by cache- Returns:
- a GetKeyValueCommand
-
buildGetCacheEntryCommand
Builds a GetCacheEntryCommand- Parameters:
key- key to getsegment- the segment for the keyflagsBitSet- Command flags provided by cache- Returns:
- a GetCacheEntryCommand
-
buildGetAllCommand
Builds a GetAllCommand- 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
-
buildKeySetCommand
Builds a KeySetCommand- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a KeySetCommand
-
buildEntrySetCommand
Builds a EntrySetCommand- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a EntrySetCommand
-
buildPutMapCommand
Builds a PutMapCommand- Parameters:
map- map containing key/value entries to putmetadata- metadata of entryflagsBitSet- Command flags provided by cache- Returns:
- a PutMapCommand
-
buildClearCommand
Builds a ClearCommand- Parameters:
flagsBitSet- Command flags provided by cache- Returns:
- a ClearCommand
-
buildEvictCommand
Builds an EvictCommand- Parameters:
key- key to evictsegment- the segment for the keyflagsBitSet- Command flags provided by cache- Returns:
- an EvictCommand
-
buildPrepareCommand
PrepareCommand buildPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhaseCommit) Builds a PrepareCommand- Parameters:
gtx- global transaction associated with the preparemodifications- list of modificationsonePhaseCommit- is this a one-phase or two-phase transaction?- Returns:
- a PrepareCommand
-
buildVersionedPrepareCommand
VersionedPrepareCommand buildVersionedPrepareCommand(GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase) Builds a VersionedPrepareCommand- Parameters:
gtx- global transaction associated with the preparemodifications- list of modificationsonePhase-- Returns:
- a VersionedPrepareCommand
-
buildCommitCommand
Builds a CommitCommand- Parameters:
gtx- global transaction associated with the commit- Returns:
- a CommitCommand
-
buildVersionedCommitCommand
Builds a VersionedCommitCommand- Parameters:
gtx- global transaction associated with the commit- Returns:
- a VersionedCommitCommand
-
buildRollbackCommand
Builds a RollbackCommand- Parameters:
gtx- global transaction associated with the rollback- Returns:
- a RollbackCommand
-
buildClusteredGetCommand
Builds a ClusteredGetCommand, which is a remote lookup command- Parameters:
key- key to look upsegment- the segment for the key or null if it should be computed on the remote nodeflagsBitSet- Command flags provided by cache- Returns:
- a ClusteredGetCommand
-
buildClusteredGetAllCommand
ClusteredGetAllCommand buildClusteredGetAllCommand(List<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a ClusteredGetAllCommand, which is a remote lookup command- Parameters:
keys- key to look upflagsBitSet- Command flags provided by cache- Returns:
- a ClusteredGetAllCommand
-
buildLockControlCommand
LockControlCommand buildLockControlCommand(Collection<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a LockControlCommand to control explicit remote locking- Parameters:
keys- keys to lockflagsBitSet- Command flags provided by cachegtx-- Returns:
- a LockControlCommand
-
buildLockControlCommand
Same asbuildLockControlCommand(Collection, long, GlobalTransaction)but for locking a single key vs a collection of keys. -
buildLockControlCommand
-
buildConflictResolutionStartCommand
ConflictResolutionStartCommand buildConflictResolutionStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments) -
buildStateTransferCancelCommand
StateTransferCancelCommand buildStateTransferCancelCommand(int topologyId, org.infinispan.commons.util.IntSet segments) -
buildStateTransferGetListenersCommand
-
buildStateTransferGetTransactionsCommand
StateTransferGetTransactionsCommand buildStateTransferGetTransactionsCommand(int topologyId, org.infinispan.commons.util.IntSet segments) -
buildStateTransferStartCommand
StateTransferStartCommand buildStateTransferStartCommand(int topologyId, org.infinispan.commons.util.IntSet segments) -
buildStateResponseCommand
StateResponseCommand buildStateResponseCommand(int viewId, Collection<StateChunk> stateChunks, boolean applyState) Builds a StateResponseCommand used for pushing cache entries to another node. -
getCacheName
String getCacheName()Retrieves the cache name this CommandFactory is set up to construct commands for.- Returns:
- the name of the cache this CommandFactory is set up to construct commands for.
-
buildGetInDoubtTransactionsCommand
GetInDoubtTransactionsCommand buildGetInDoubtTransactionsCommand()Builds aGetInDoubtTransactionsCommand. -
buildTxCompletionNotificationCommand
TxCompletionNotificationCommand buildTxCompletionNotificationCommand(org.infinispan.commons.tx.XidImpl xid, GlobalTransaction globalTransaction) Builds aTxCompletionNotificationCommand. -
buildGetInDoubtTxInfoCommand
GetInDoubtTxInfoCommand buildGetInDoubtTxInfoCommand()- See Also:
-
buildCompleteTransactionCommand
CompleteTransactionCommand buildCompleteTransactionCommand(org.infinispan.commons.tx.XidImpl xid, boolean commit) Builds a CompleteTransactionCommand command.- Parameters:
xid- the xid identifying the transaction we want to complete.commit- commit(true) or rollback(false)?
-
buildTxCompletionNotificationCommand
- Parameters:
internalId- the internal id identifying the transaction to be removed.- See Also:
-
buildXSiteStateTransferCancelSendCommand
-
buildXSiteStateTransferClearStatusCommand
XSiteStateTransferClearStatusCommand buildXSiteStateTransferClearStatusCommand() -
buildXSiteStateTransferFinishReceiveCommand
-
buildXSiteStateTransferFinishSendCommand
XSiteStateTransferFinishSendCommand buildXSiteStateTransferFinishSendCommand(String siteName, boolean statusOk) -
buildXSiteStateTransferRestartSendingCommand
XSiteStateTransferRestartSendingCommand buildXSiteStateTransferRestartSendingCommand(String siteName, int topologyId) -
buildXSiteStateTransferStartReceiveCommand
-
buildXSiteStateTransferStartSendCommand
XSiteStateTransferStartSendCommand buildXSiteStateTransferStartSendCommand(String siteName, int topologyId) -
buildXSiteStateTransferStatusRequestCommand
XSiteStateTransferStatusRequestCommand buildXSiteStateTransferStatusRequestCommand() -
buildXSiteStateTransferControlRequest
-
buildXSiteAmendOfflineStatusCommand
XSiteAmendOfflineStatusCommand buildXSiteAmendOfflineStatusCommand(String siteName, Integer afterFailures, Long minTimeToWait) -
buildXSiteStatePushCommand
@Deprecated(since="16.0", forRemoval=true) default XSiteStatePushCommand buildXSiteStatePushCommand(XSiteState[] chunk) Deprecated, for removal: This API element is subject to removal in a future version.since 16.0, usebuildXSiteStatePushCommand(List)insteadBuilds XSiteStatePushCommand used to transfer a single chunk of data between sites.- Parameters:
chunk- the data chunk- Returns:
- the XSiteStatePushCommand created
-
buildXSiteStatePushCommand
Builds XSiteStatePushCommand used to transfer a single chunk of data between sites.- Parameters:
chunk- the data chunk- Returns:
- the XSiteStatePushCommand created
-
buildSingleXSiteRpcCommand
Builds SingleRpcCommand used to performVisitableCommandon the backup site,- Parameters:
command- the visitable command.- Returns:
- the SingleXSiteRpcCommand created
-
buildReadOnlyKeyCommand
<K,V, ReadOnlyKeyCommand<K,R> V, buildReadOnlyKeyCommandR> (Object key, Function<EntryView.ReadEntryView<K, V>, R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildReadOnlyManyCommand
<K,V, ReadOnlyManyCommand<K,R> V, buildReadOnlyManyCommandR> (Collection<?> keys, Function<EntryView.ReadEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildWriteOnlyKeyCommand
<K,V> WriteOnlyKeyCommand<K,V> buildWriteOnlyKeyCommand(Object key, Consumer<EntryView.WriteEntryView<K, V>> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildReadWriteKeyValueCommand
<K,V, ReadWriteKeyValueCommand<K,T, R> V, buildReadWriteKeyValueCommandT, R> (Object key, Object argument, BiFunction<T, EntryView.ReadWriteEntryView<K, V>, R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildReadWriteKeyCommand
<K,V, ReadWriteKeyCommand<K,R> V, buildReadWriteKeyCommandR> (Object key, Function<EntryView.ReadWriteEntryView<K, V>, R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildWriteOnlyManyEntriesCommand
<K,V, WriteOnlyManyEntriesCommand<K,T> V, buildWriteOnlyManyEntriesCommandT> (Map<?, ?> arguments, BiConsumer<T, EntryView.WriteEntryView<K, V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildWriteOnlyKeyValueCommand
<K,V, WriteOnlyKeyValueCommand<K,T> V, buildWriteOnlyKeyValueCommandT> (Object key, Object argument, BiConsumer<T, EntryView.WriteEntryView<K, V>> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildWriteOnlyManyCommand
<K,V> WriteOnlyManyCommand<K,V> buildWriteOnlyManyCommand(Collection<?> keys, Consumer<EntryView.WriteEntryView<K, V>> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildReadWriteManyCommand
<K,V, ReadWriteManyCommand<K,R> V, buildReadWriteManyCommandR> (Collection<?> keys, Function<EntryView.ReadWriteEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildReadWriteManyEntriesCommand
<K,V, ReadWriteManyEntriesCommand<K,T, R> V, buildReadWriteManyEntriesCommandT, R> (Map<?, ?> entries, BiFunction<T, EntryView.ReadWriteEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildTxReadOnlyKeyCommand
<K,V, TxReadOnlyKeyCommand<K,R> V, buildTxReadOnlyKeyCommandR> (Object key, Function<EntryView.ReadEntryView<K, V>, R> f, List<Mutation<K, V, ?>> mutations, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildTxReadOnlyManyCommand
<K,V, TxReadOnlyManyCommand<K,R> V, buildTxReadOnlyManyCommandR> (Collection<?> keys, List<List<Mutation<K, V, ?>>> mutations, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
buildBackupMultiKeyAckCommand
-
buildExceptionAckCommand
-
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(ReplaceCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(ComputeIfAbsentCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(ComputeCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(PutKeyValueCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(IracPutKeyValueCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
SingleKeyBackupWriteCommand buildSingleKeyBackupWriteCommand(RemoveCommand command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
<K,V, SingleKeyFunctionalBackupWriteCommand buildSingleKeyBackupWriteCommandT, R> (ReadWriteKeyValueCommand<K, V, T, R> command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
<K,V, SingleKeyFunctionalBackupWriteCommand buildSingleKeyBackupWriteCommandR> (ReadWriteKeyCommand<K, V, R> command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
<K,V> SingleKeyFunctionalBackupWriteCommand buildSingleKeyBackupWriteCommand(WriteOnlyKeyCommand<K, V> command, long sequence, int segmentId) -
buildSingleKeyBackupWriteCommand
<K,V, SingleKeyFunctionalBackupWriteCommand buildSingleKeyBackupWriteCommandT> (WriteOnlyKeyValueCommand<K, V, T> command, long sequence, int segmentId) -
buildPutMapBackupWriteCommand
PutMapBackupWriteCommand buildPutMapBackupWriteCommand(PutMapCommand command, Collection<Object> keys, long sequence, int segmentId) -
buildMultiEntriesFunctionalBackupWriteCommand
<K,V, MultiEntriesFunctionalBackupWriteCommand buildMultiEntriesFunctionalBackupWriteCommandT> (WriteOnlyManyEntriesCommand<K, V, T> command, Collection<Object> keys, long sequence, int segmentId) -
buildMultiEntriesFunctionalBackupWriteCommand
<K,V, MultiEntriesFunctionalBackupWriteCommand buildMultiEntriesFunctionalBackupWriteCommandT, R> (ReadWriteManyEntriesCommand<K, V, T, R> command, Collection<Object> keys, long sequence, int segmentId) -
buildMultiKeyFunctionalBackupWriteCommand
<K,V> MultiKeyFunctionalBackupWriteCommand buildMultiKeyFunctionalBackupWriteCommand(WriteOnlyManyCommand<K, V> command, Collection<Object> keys, long sequence, int segmentId) -
buildMultiKeyFunctionalBackupWriteCommand
<K,V, MultiKeyFunctionalBackupWriteCommand buildMultiKeyFunctionalBackupWriteCommandR> (ReadWriteManyCommand<K, V, R> command, Collection<Object> keys, long sequence, int segmentId) -
buildBackupNoopCommand
-
buildKeyReductionPublisherCommand
<K,R> org.infinispan.reactive.publisher.impl.commands.reduction.ReductionPublisherRequestCommand<K> buildKeyReductionPublisherCommand(boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, Function<? super org.reactivestreams.Publisher<K>, ? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>, ? extends CompletionStage<R>> finalizer) -
buildEntryReductionPublisherCommand
<K,V, org.infinispan.reactive.publisher.impl.commands.reduction.ReductionPublisherRequestCommand<K> buildEntryReductionPublisherCommandR> (boolean parallelStream, DeliveryGuarantee deliveryGuarantee, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, Function<? super org.reactivestreams.Publisher<CacheEntry<K, V>>, ? extends CompletionStage<R>> transformer, Function<? super org.reactivestreams.Publisher<R>, ? extends CompletionStage<R>> finalizer) -
buildInitialPublisherCommand
<K,I, org.infinispan.reactive.publisher.impl.commands.batch.InitialPublisherCommand<K,R> I, buildInitialPublisherCommandR> (String requestId, DeliveryGuarantee deliveryGuarantee, int batchSize, org.infinispan.commons.util.IntSet segments, Set<K> keys, Set<K> excludedKeys, long explicitFlags, boolean entryStream, boolean trackKeys, Function<? super org.reactivestreams.Publisher<I>, ? extends org.reactivestreams.Publisher<R>> transformer) -
buildNextPublisherCommand
org.infinispan.reactive.publisher.impl.commands.batch.NextPublisherCommand buildNextPublisherCommand(String requestId) -
buildCancelPublisherCommand
org.infinispan.reactive.publisher.impl.commands.batch.CancelPublisherCommand buildCancelPublisherCommand(String requestId) -
buildMultiClusterEventCommand
<K,V> MultiClusterEventCommand<K,V> buildMultiClusterEventCommand(Map<UUID, Collection<ClusterEvent<K, V>>> events) -
buildCheckTransactionRpcCommand
CheckTransactionRpcCommand buildCheckTransactionRpcCommand(Collection<GlobalTransaction> globalTransactions) -
buildTouchCommand
TouchCommand buildTouchCommand(Object key, int segment, boolean touchEvenIfExpired, long flagBitSet) -
buildIracClearKeysCommand
IracClearKeysRequest buildIracClearKeysCommand() -
buildIracCleanupKeyCommand
-
buildIracTombstoneCleanupCommand
-
buildIracMetadataRequestCommand
IracMetadataRequestCommand buildIracMetadataRequestCommand(int segment, IracEntryVersion versionSeen) -
buildIracRequestStateCommand
-
buildIracStateResponseCommand
-
buildIracPutKeyValueCommand
IracPutKeyValueCommand buildIracPutKeyValueCommand(Object key, int segment, Object value, Metadata metadata, PrivateMetadata privateMetadata) -
buildIracTouchCommand
-
buildIracUpdateVersionCommand
IracUpdateVersionCommand buildIracUpdateVersionCommand(Map<Integer, IracEntryVersion> segmentsVersion) -
buildXSiteAutoTransferStatusCommand
-
buildXSiteSetStateTransferModeCommand
XSiteSetStateTransferModeCommand buildXSiteSetStateTransferModeCommand(String site, XSiteStateTransferMode mode) -
buildIracTombstoneRemoteSiteCheckCommand
-
buildIracTombstoneStateResponseCommand
IracTombstoneStateResponseCommand buildIracTombstoneStateResponseCommand(Collection<IracTombstoneInfo> state) -
buildIracTombstonePrimaryCheckCommand
IracTombstonePrimaryCheckCommand buildIracTombstonePrimaryCheckCommand(Collection<IracTombstoneInfo> tombstones) -
buildIracPutManyCommand
-
buildXSiteStatePushRequest
@Deprecated(since="16.0", forRemoval=true) default XSiteStatePushRequest buildXSiteStatePushRequest(XSiteState[] chunk, long timeoutMillis) Deprecated, for removal: This API element is subject to removal in a future version.since 16.0, usebuildXSiteStatePushRequest(List, long)instead -
buildXSiteStatePushRequest
-
buildIracTombstoneCheckRequest
-
buildIracPrimaryPendingKeyCheckCommand
IracPrimaryPendingKeyCheckCommand buildIracPrimaryPendingKeyCheckCommand(List<IracManagerKeyInfo> keys)
-
buildXSiteStatePushCommand(List)instead