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

io.scalecube.cluster.fdetector.FailureDetectorEvent Maven / Gradle / Ivy

package io.scalecube.cluster.fdetector;

import io.scalecube.cluster.Member;
import io.scalecube.cluster.membership.MemberStatus;
import java.util.StringJoiner;

/** CLass contains result of ping check. */
public final class FailureDetectorEvent {

  private final Member member;
  private final MemberStatus status;

  FailureDetectorEvent(Member member, MemberStatus status) {
    this.member = member;
    this.status = status;
  }

  public Member member() {
    return member;
  }

  public MemberStatus status() {
    return status;
  }

  @Override
  public String toString() {
    return new StringJoiner(", ", FailureDetectorEvent.class.getSimpleName() + "[", "]")
        .add("member=" + member)
        .add("status=" + status)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy