public enum SingletonRequirement extends Enum<SingletonRequirement> implements org.wildfly.clustering.service.DefaultableUnaryRequirement
Enum Constant and Description |
---|
POLICY |
SINGLETON_POLICY
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.wildfly.clustering.service.Requirement |
getDefaultRequirement() |
String |
getName() |
static SingletonRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SingletonRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final SingletonRequirement SINGLETON_POLICY
public static final SingletonRequirement POLICY
public static SingletonRequirement[] values()
for (SingletonRequirement c : SingletonRequirement.values()) System.out.println(c);
public static SingletonRequirement valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
getName
in interface org.wildfly.clustering.service.Requirement
public org.wildfly.clustering.service.Requirement getDefaultRequirement()
getDefaultRequirement
in interface org.wildfly.clustering.service.DefaultableUnaryRequirement
Copyright © 2019 JBoss by Red Hat. All rights reserved.