io.paradoxical.cassandra.leadership.interfaces.LeadershipElection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-leadership Show documentation
Show all versions of cassandra-leadership Show documentation
Leadership election using Cassandra
The newest version!
package io.paradoxical.cassandra.leadership.interfaces;
import io.paradoxical.cassandra.leadership.data.LeaderIdentity;
import io.paradoxical.cassandra.leadership.data.LeadershipToken;
import java.time.Duration;
import java.util.Optional;
public interface LeadershipElection {
Optional tryClaimLeader(LeaderIdentity identity, Duration ttl);
boolean tryHeartbeat(LeadershipToken claim);
boolean renounceLeadership(LeadershipToken claim);
LeaderIdentity getLeader();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy