Class XSiteLocalEventCommand
java.lang.Object
org.infinispan.xsite.commands.XSiteLocalEventCommand
- All Implemented Interfaces:
GlobalRpcCommand
,ReplicableCommand
,TracedCommand
,VersionAware
Sends
XSiteEvent
list from a local site node.- Since:
- 15.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvokeAsync
(GlobalComponentRegistry globalComponentRegistry) Invoke the command asynchronously.boolean
If true, a return value will be provided when performed remotely.Returns aNodeVersion
representing the Infinispan version in which this command was added.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, isSuccessful, logThrowable, readFrom, setOrigin, writeTo
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Constructor Details
-
XSiteLocalEventCommand
-
-
Method Details
-
invokeAsync
public CompletionStage<?> invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable Description copied from interface:GlobalRpcCommand
Invoke the command asynchronously.- Specified by:
invokeAsync
in interfaceGlobalRpcCommand
- Throws:
Throwable
-
isReturnValueExpected
public boolean isReturnValueExpected()Description copied from interface:ReplicableCommand
If true, a return value will be provided when performed remotely. Otherwise, a remoteResponseGenerator
may choose to simply return null to save on marshalling costs.- Specified by:
isReturnValueExpected
in interfaceReplicableCommand
- Returns:
- true or false
-
supportedSince
Description copied from interface:ReplicableCommand
Returns aNodeVersion
representing the Infinispan version in which this command was added. This value is used to ensure that when the cluster contains different Infinispan versions, only commands compatible with the oldest version are transmitted.Abstract classes should not implement this method as the version should be specific to an individual implementation. Similarly, implementations which extend another
ReplicableCommand
should always override this method.- Specified by:
supportedSince
in interfaceReplicableCommand
- Specified by:
supportedSince
in interfaceVersionAware
- Returns:
- a
NodeVersion
corresponding to the Infinispan version this command was added.
-
toString
-