List of usage examples for org.springframework.integration.leader DefaultCandidate DefaultCandidate
public DefaultCandidate()
From source file:org.springframework.integration.etcd.leader.LeaderInitiator.java
/** * Construct a {@link LeaderInitiator}.//from w ww . ja v a2 s. c o m * @param client {@link EtcdClient} instance * @param namespace Etcd namespace */ public LeaderInitiator(EtcdClient client, String namespace) { this(client, new DefaultCandidate(), namespace); }
From source file:org.springframework.integration.hazelcast.leader.LeaderInitiator.java
/** * Construct a {@link LeaderInitiator} with a default candidate. * @param client Hazelcast client/*w w w . j ava 2 s . c o m*/ */ public LeaderInitiator(HazelcastInstance client) { this(client, new DefaultCandidate()); }
From source file:org.springframework.integration.support.leader.LockRegistryLeaderInitiator.java
/** * Create a new leader initiator with the provided lock registry and a default * candidate (which just logs the leadership events). * @param locks lock registry//ww w . j a va 2s . c o m */ public LockRegistryLeaderInitiator(LockRegistry locks) { this(locks, new DefaultCandidate()); }