public static enum SingletonManager.Mode extends Enum<SingletonManager.Mode>
Enum Constant and Description |
---|
CLIENT
In this mode singletons are disabled when the number of active client reservations goes to
zero.
|
CONNECTOR
In this mode singletons are never disabled unless the mode is set back to CLIENT.
|
SERVER
In this mode singletons are never disabled.
|
Modifier and Type | Method and Description |
---|---|
static SingletonManager.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SingletonManager.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SingletonManager.Mode CLIENT
public static final SingletonManager.Mode SERVER
public static final SingletonManager.Mode CONNECTOR
public static SingletonManager.Mode[] values()
for (SingletonManager.Mode c : SingletonManager.Mode.values()) System.out.println(c);
public static SingletonManager.Mode 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 nullCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.