Class HeartBeatCommand
java.lang.Object
org.infinispan.topology.HeartBeatCommand
- All Implemented Interfaces:
GlobalRpcCommand,ReplicableCommand,TracedCommand,VersionAware
A hear-beat command used to ping members in
ClusterTopologyManagerImpl.confirmMembersAvailable().- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvokeAsync(GlobalComponentRegistry globalComponentRegistry) Invoke the command asynchronously.booleanIf true, a return value will be provided when performed remotely.Returns aNodeVersionrepresenting the Infinispan version in which this command was added.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, isSuccessful, logThrowable, readFrom, setOrigin, writeToMethods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
HeartBeatCommand
public HeartBeatCommand()
-
-
Method Details
-
invokeAsync
public CompletionStage<?> invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable Description copied from interface:GlobalRpcCommandInvoke the command asynchronously.- Specified by:
invokeAsyncin interfaceGlobalRpcCommand- Throws:
Throwable
-
isReturnValueExpected
public boolean isReturnValueExpected()Description copied from interface:ReplicableCommandIf true, a return value will be provided when performed remotely. Otherwise, a remoteResponseGeneratormay choose to simply return null to save on marshalling costs.- Specified by:
isReturnValueExpectedin interfaceReplicableCommand- Returns:
- true or false
-
supportedSince
Description copied from interface:ReplicableCommandReturns aNodeVersionrepresenting 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
ReplicableCommandshould always override this method.- Specified by:
supportedSincein interfaceReplicableCommand- Specified by:
supportedSincein interfaceVersionAware- Returns:
- a
NodeVersioncorresponding to the Infinispan version this command was added.
-