|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LocalContextScope>
org.jruby.embed.LocalContextScope
public enum LocalContextScope
LocalContextState defines three scopes to maintain LocalContext
.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |