Class XSiteStatePushRequest
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<Void>
org.infinispan.xsite.commands.remote.XSiteStatePushRequest
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionXSiteStatePushRequest(ByteString cacheName, XSiteState[] chunk, long timeoutMillis) -
Method Summary
Modifier and TypeMethodDescriptionbyteUsed 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).voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
invokeInLocalSite
-
Constructor Details
-
XSiteStatePushRequest
public XSiteStatePushRequest() -
XSiteStatePushRequest
-
-
Method Details
-
invokeInLocalCache
- Specified by:
invokeInLocalCachein classXSiteCacheRequest<Void>
-
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<Void>- Overrides:
writeToin classXSiteCacheRequest<Void>- 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<Void>- Overrides:
readFromin 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.
-