
org.wildfly.clustering.singleton.SingletonElectionPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-singleton-api Show documentation
Show all versions of wildfly-clustering-singleton-api Show documentation
Public API for installing singleton MSC services.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.singleton;
import java.util.List;
import org.wildfly.clustering.group.Node;
/**
* Used by a singleton service to elect the primary node from among the list of nodes that can provide the given service.
* @author Paul Ferraro
* @deprecated Replaced by {@link org.wildfly.clustering.singleton.election.SingletonElectionPolicy}.
*/
@Deprecated(forRemoval = true)
public interface SingletonElectionPolicy {
/**
* Elect a single member from the specified list of candidate members.
* @param members a list of candidate members.
* @return the elected member
*/
Node elect(List candidates);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy