Class XSiteCacheRequest<T>
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteCacheRequest<T>
- All Implemented Interfaces:
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
Fields -
Constructor Summary
Constructors -
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).voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.xsite.commands.remote.XSiteRequest
getCommandId
-
Field Details
-
cacheName
-
-
Constructor Details
-
XSiteCacheRequest
-
-
Method Details
-
invokeInLocalSite
Description copied from interface:XSiteRequestThis method is invoked by the receiver node.The
GlobalComponentRegistrygives access to every component managed by this cache manager.- Specified by:
invokeInLocalSitein interfaceXSiteRequest<T>- Parameters:
origin- The sender site.registry- TheGlobalComponentRegistry.
-
invokeInLocalCache
-
writeTo
Description copied from interface:XSiteRequestWrites this instance to theObjectOutput.- Specified by:
writeToin interfaceXSiteRequest<T>- 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<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.
-