Package org.infinispan.commands.irac
Class IracPutManyCommand
java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
org.infinispan.xsite.XSiteReplicateCommand<T>
org.infinispan.commands.irac.IracUpdateKeyCommand<org.infinispan.commons.util.IntSet>
org.infinispan.commands.irac.IracPutManyCommand
- All Implemented Interfaces:
CacheRpcCommand,ReplicableCommand
A multi-key cross-site requests.
This command is used by asynchronous cross-site replication to send multiple keys batched to remote sites. The keys in this command can include updates, removal or expirations.
The element order in updateList is important because the reply will be a IntSet with the position of
the failed keys.
- Since:
- 14.0
-
Field Summary
FieldsFields inherited from class org.infinispan.xsite.XSiteReplicateCommand
originSiteFields inherited from class org.infinispan.commands.remote.BaseRpcCommand
cacheName, origin -
Constructor Summary
ConstructorsConstructorDescriptionIracPutManyCommand(ByteString cacheName) IracPutManyCommand(ByteString cacheName, int maxCapacity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpire(Object key, IracMetadata tombstone) voidaddRemove(Object key, IracMetadata tombstone) voidaddUpdate(Object key, Object value, Metadata metadata, IracMetadata iracMetadata) CompletionStage<org.infinispan.commons.util.IntSet>executeOperation(BackupReceiver receiver) byteUsed by marshallers to convert this command into an id for streaming.booleanisEmpty()voidreadFrom(ObjectInput input) Reads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).toString()voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class org.infinispan.commands.irac.IracUpdateKeyCommand
invokeAsync, isClear, isReturnValueExpected, performInLocalSiteMethods inherited from class org.infinispan.xsite.XSiteReplicateCommand
performInLocalSite, setOriginSiteMethods inherited from class org.infinispan.commands.remote.BaseRpcCommand
getCacheName, getOrigin, setOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful, logThrowable
-
Field Details
-
COMMAND_ID
public static final byte COMMAND_ID- See Also:
-
-
Constructor Details
-
IracPutManyCommand
public IracPutManyCommand() -
IracPutManyCommand
-
IracPutManyCommand
-
-
Method Details
-
executeOperation
public CompletionStage<org.infinispan.commons.util.IntSet> executeOperation(BackupReceiver receiver) - Specified by:
executeOperationin classIracUpdateKeyCommand<org.infinispan.commons.util.IntSet>
-
getCommandId
public byte getCommandId()Description copied from interface:ReplicableCommandUsed by marshallers to convert this command into an id for streaming.- Specified by:
getCommandIdin interfaceReplicableCommand- Overrides:
getCommandIdin classXSiteReplicateCommand<org.infinispan.commons.util.IntSet>- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
writeTo
Description copied from interface:ReplicableCommandWrites this instance to theObjectOutput.- Parameters:
output- the stream.- Throws:
IOException- if an error occurred during the I/O.
-
readFrom
Description copied from interface:ReplicableCommandReads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).- Parameters:
input- the stream to read.- Throws:
IOException- if an error occurred during the I/O.ClassNotFoundException- if it tries to load an undefined class.
-
toString
- Overrides:
toStringin classBaseRpcCommand
-
addUpdate
-
addRemove
-
addExpire
-
isEmpty
public boolean isEmpty()
-