Class IracPutManyRequest
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<IntSet>
org.infinispan.xsite.commands.remote.IracUpdateKeyRequest<IntSet>
org.infinispan.xsite.commands.remote.IracPutManyRequest
- All Implemented Interfaces:
TracedCommand
,XSiteRequest<IntSet>
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:
- 15.0
-
Field Summary
Fields inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
cacheName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpire
(Object key, IracMetadata tombstone) void
addRemove
(Object key, IracMetadata tombstone) void
addUpdate
(Object key, Object value, Metadata metadata, IracMetadata iracMetadata) executeOperation
(org.infinispan.xsite.BackupReceiver receiver) byte
Used by marshallers to convert this command into an id for streaming.boolean
isEmpty()
readFrom
(ObjectInput input) Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput)
.toString()
void
writeTo
(ObjectOutput output) Writes this instance to theObjectOutput
.Methods inherited from class org.infinispan.xsite.commands.remote.IracUpdateKeyRequest
invokeInLocalCache
Methods inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
invokeInLocalSite
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Constructor Details
-
IracPutManyRequest
public IracPutManyRequest() -
IracPutManyRequest
-
-
Method Details
-
executeOperation
- Specified by:
executeOperation
in classIracUpdateKeyRequest<IntSet>
-
getCommandId
public byte getCommandId()Description copied from interface:XSiteRequest
Used by marshallers to convert this command into an id for streaming.- Returns:
- the method id of this command.
-
writeTo
Description copied from interface:XSiteRequest
Writes this instance to theObjectOutput
.- Specified by:
writeTo
in interfaceXSiteRequest<IntSet>
- Overrides:
writeTo
in classXSiteCacheRequest<IntSet>
- Parameters:
output
- the stream.- Throws:
IOException
- if an error occurred during the I/O.
-
readFrom
Description copied from interface:XSiteRequest
Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput)
.- Specified by:
readFrom
in interfaceXSiteRequest<IntSet>
- Overrides:
readFrom
in classXSiteCacheRequest<IntSet>
- 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
-
addUpdate
-
addRemove
-
addExpire
-
isEmpty
public boolean isEmpty()
-