Package org.infinispan.xsite
Class SingleXSiteRpcCommand
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<Object>
org.infinispan.xsite.SingleXSiteRpcCommand
- All Implemented Interfaces:
TracedCommand,XSiteRequest<Object>
RPC command to replicate cache operations (such as put, remove, replace, etc.) to the backup site.
- Since:
- 7.0
- Author:
- Pedro Ruivo
-
Field Summary
Fields inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
cacheName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteUsed by marshallers to convert this command into an id for streaming.protected CompletionStage<Object> invokeInLocalCache(String origin, ComponentRegistry registry) readFrom(ObjectInput input) Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput).voidsetSpanAttributes(InfinispanSpanAttributes attributes) toString()voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class org.infinispan.xsite.commands.remote.XSiteCacheRequest
invokeInLocalSite
-
Constructor Details
-
SingleXSiteRpcCommand
-
SingleXSiteRpcCommand
public SingleXSiteRpcCommand()
-
-
Method Details
-
invokeInLocalCache
- Specified by:
invokeInLocalCachein classXSiteCacheRequest<Object>
-
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<Object>- Overrides:
writeToin classXSiteCacheRequest<Object>- 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<Object>- Overrides:
readFromin classXSiteCacheRequest<Object>- 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.
-
getSpanAttributes
-
getOperationName
-
setSpanAttributes
-
toString
-