Class IracPutManyRequest
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<T>
org.infinispan.xsite.commands.remote.IracUpdateKeyRequest<IntSet>
org.infinispan.xsite.commands.remote.IracPutManyRequest
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpire(Object key, IracMetadata tombstone) voidaddRemove(Object key, IracMetadata tombstone) voidaddUpdate(Object key, Object value, Metadata metadata, IracMetadata iracMetadata) executeOperation(org.infinispan.xsite.BackupReceiver receiver) byteUsed by marshallers to convert this command into an id for streaming.booleanisEmpty()readFrom(ObjectInput input) Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput).toString()voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class org.infinispan.xsite.commands.remote.IracUpdateKeyRequest
invokeInLocalCacheMethods inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
invokeInLocalSite
-
Constructor Details
-
IracPutManyRequest
public IracPutManyRequest() -
IracPutManyRequest
-
-
Method Details
-
executeOperation
- Specified by:
executeOperationin classIracUpdateKeyRequest<IntSet>
-
getCommandId
public byte getCommandId()Description copied from interface:XSiteRequestUsed by marshallers to convert this command into an id for streaming.- Returns:
- the method id of this command.
-
writeTo
Description copied from interface:XSiteRequestWrites this instance to theObjectOutput.- Specified by:
writeToin interfaceXSiteRequest<IntSet>- Overrides:
writeToin classXSiteCacheRequest<IntSet>- Parameters:
output- the stream.- Throws:
IOException- if an error occurred during the I/O.
-
readFrom
Description copied from interface:XSiteRequestReads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput).- Specified by:
readFromin interfaceXSiteRequest<IntSet>- Overrides:
readFromin 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()
-