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();
}
}