public enum LocalContextScope extends java.lang.Enum<LocalContextScope>
LocalContext.| Enum Constant and Description |
|---|
CONCURRENT
Specifies that an instance of
Ruby runtime is a singleton and
LocalContext is a thread local. |
SINGLETHREAD
Specifies that
LocalContext is a thread indifferent instance. |
SINGLETON
Specifies that
LocalContext is a singleton. |
THREADSAFE
Specifies that an instance of
LocalContext is a thread local. |
| Modifier and Type | Method and Description |
|---|---|
static LocalContextScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocalContextScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalContextScope SINGLETON
LocalContext is a singleton.public static final LocalContextScope SINGLETHREAD
LocalContext is a thread indifferent instance.
Users are responsible to thread safety.public static final LocalContextScope THREADSAFE
LocalContext is a thread local.public static final LocalContextScope CONCURRENT
Ruby runtime is a singleton and
LocalContext is a thread local.public static LocalContextScope[] values()
for (LocalContextScope c : LocalContextScope.values()) System.out.println(c);
public static LocalContextScope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2002-2009 JRuby Team. All Rights Reserved.