Class XSiteRemoteEventCommand
java.lang.Object
org.infinispan.xsite.commands.remote.XSiteRemoteEventCommand
- All Implemented Interfaces:
TracedCommand
,XSiteRequest<Void>
Sends a
XSiteEvent
list from a remote site.- Since:
- 15.0
-
Constructor Summary
-
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.readFrom
(ObjectInput input) Reads this instance from the stream written byXSiteRequest.writeTo(ObjectOutput)
.toString()
void
writeTo
(ObjectOutput output) Writes this instance to theObjectOutput
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Constructor Details
-
XSiteRemoteEventCommand
public XSiteRemoteEventCommand() -
XSiteRemoteEventCommand
-
-
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<Void>
- Parameters:
origin
- The sender site.registry
- TheGlobalComponentRegistry
.
-
getCommandId
public byte getCommandId()Description copied from interface:XSiteRequest
Used by marshallers to convert this command into an id for streaming.- Specified by:
getCommandId
in interfaceXSiteRequest<Void>
- Returns:
- the method id of this command.
-
writeTo
Description copied from interface:XSiteRequest
Writes this instance to theObjectOutput
.- Specified by:
writeTo
in interfaceXSiteRequest<Void>
- 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<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
-