Interface XSiteRequest<T>
- All Known Implementing Classes:
IracClearKeysRequest
,IracPutManyRequest
,IracTombstoneCheckRequest
,IracTouchKeyRequest
,IracUpdateKeyRequest
,XSiteCacheRequest
,XSiteRemoteEventCommand
,XSiteStatePushRequest
,XSiteStateTransferControlRequest
public interface XSiteRequest<T>
It represents a cross-site request.
- Since:
- 15.0
-
Method Summary
Modifier and TypeMethodDescriptionbyte
Used by marshallers to convert this command into an id for streaming.invokeInLocalSite
(String origin, GlobalComponentRegistry registry) This method is invoked by the receiver node.default XSiteRequest<T>
readFrom
(ObjectInput input) Reads this instance from the stream written bywriteTo(ObjectOutput)
.default void
writeTo
(ObjectOutput output) Writes this instance to theObjectOutput
.
-
Method Details
-
invokeInLocalSite
This method is invoked by the receiver node.The
GlobalComponentRegistry
gives access to every component managed by this cache manager.- Parameters:
origin
- The sender site.registry
- TheGlobalComponentRegistry
.
-
getCommandId
byte getCommandId()Used by marshallers to convert this command into an id for streaming.- Returns:
- the method id of this command.
-
writeTo
Writes this instance to theObjectOutput
.- Parameters:
output
- the stream.- Throws:
IOException
- if an error occurred during the I/O.
-
readFrom
Reads this instance from the stream written bywriteTo(ObjectOutput)
.- 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.
-