Class XSiteRemoteEventCommand
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteRemoteEventCommand
- All Implemented Interfaces:
XSiteRequest<Void>
Sends a
XSiteEvent list from a remote site.- Since:
- 15.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteUsed by marshallers to convert this command into an id for streaming.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).toString()voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.
-
Constructor Details
-
XSiteRemoteEventCommand
public XSiteRemoteEventCommand() -
XSiteRemoteEventCommand
-
-
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<Void>- Parameters:
origin- The sender site.registry- TheGlobalComponentRegistry.
-
getCommandId
public byte getCommandId()Description copied from interface:XSiteRequestUsed by marshallers to convert this command into an id for streaming.- Specified by:
getCommandIdin interfaceXSiteRequest<Void>- Returns:
- the method id of this command.
-
writeTo
Description copied from interface:XSiteRequestWrites this instance to theObjectOutput.- Specified by:
writeToin interfaceXSiteRequest<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>- 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.
-
toString
-