All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.topology.HeartBeatCommand Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.topology;

import java.io.ObjectInput;
import java.io.ObjectOutput;

import org.infinispan.commands.ReplicableCommand;

/**
 * A hear-beat command used to ping members in {@link ClusterTopologyManagerImpl#confirmMembersAvailable()}.
 *
 * @author Pedro Ruivo
 * @since 9.2
 */
public class HeartBeatCommand implements ReplicableCommand {

   public static final byte COMMAND_ID = 30;
   public static final HeartBeatCommand INSTANCE = new HeartBeatCommand();


   @Override
   public byte getCommandId() {
      return COMMAND_ID;
   }

   @Override
   public boolean isReturnValueExpected() {
      return true;
   }

   @Override
   public void writeTo(ObjectOutput output){
      //nothing to write
   }

   @Override
   public void readFrom(ObjectInput input) {
      //nothing to read
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy