Class XSiteCacheRequest<T>
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<T>
- All Implemented Interfaces:
TracedCommand
,XSiteRequest<T>
- Direct Known Subclasses:
IracTombstoneCheckRequest
,IracUpdateKeyRequest
,XSiteStatePushRequest
,XSiteStateTransferControlRequest
A
XSiteRequest
which is associated to a cache.
The subclass requests have access to the cache's ComponentRegistry
via invokeInLocalCache(String, ComponentRegistry)
.
- Since:
- 15.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CompletionStage
<T> invokeInLocalCache
(String origin, ComponentRegistry registry) final CompletionStage
<T> invokeInLocalSite
(String origin, GlobalComponentRegistry registry) This method is invoked by the receiver node.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 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
Methods inherited from interface org.infinispan.xsite.commands.remote.XSiteRequest
getCommandId
-
Field Details
-
cacheName
-
-
Constructor Details
-
XSiteCacheRequest
-
-
Method Details
-
invokeInLocalSite
Description copied from interface:XSiteRequest
This method is invoked by the receiver node.The
GlobalComponentRegistry
gives access to every component managed by this cache manager.- Specified by:
invokeInLocalSite
in interfaceXSiteRequest<T>
- Parameters:
origin
- The sender site.registry
- TheGlobalComponentRegistry
.
-
invokeInLocalCache
-
writeTo
Description copied from interface:XSiteRequest
Writes this instance to theObjectOutput
.- Specified by:
writeTo
in interfaceXSiteRequest<T>
- 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<T>
- 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.
-