Class XSiteStatePushRequest
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<Void>
org.infinispan.xsite.commands.remote.XSiteStatePushRequest
- All Implemented Interfaces:
TracedCommand
,XSiteRequest<Void>
Wraps the state to be sent to another site.
It used when the backup strategy is set to BackupConfiguration.BackupStrategy.SYNC
.
- Since:
- 15.0
-
Field Summary
Fields inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
cacheName
-
Constructor Summary
ConstructorDescriptionXSiteStatePushRequest
(ByteString cacheName, XSiteState[] chunk, long timeoutMillis) -
Method Summary
Modifier and TypeMethodDescriptionbyte
Used by marshallers to convert this command into an id for streaming.protected CompletionStage
<Void> invokeInLocalCache
(String origin, ComponentRegistry registry) readFrom
(ObjectInput input) Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput)
.void
writeTo
(ObjectOutput output) Writes this instance to theObjectOutput
.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, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Constructor Details
-
XSiteStatePushRequest
public XSiteStatePushRequest() -
XSiteStatePushRequest
-
-
Method Details
-
invokeInLocalCache
- Specified by:
invokeInLocalCache
in classXSiteCacheRequest<Void>
-
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<Void>
- Overrides:
writeTo
in classXSiteCacheRequest<Void>
- 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<Void>
- Overrides:
readFrom
in classXSiteCacheRequest<Void>
- 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.
-