public static enum DynamicObjectBuilder.ObjectThreadingModel extends Enum<DynamicObjectBuilder.ObjectThreadingModel>
AnyObject
instance.
Use MultiThread if your object is expected to be thread-safe. Method calls will potentially occur in parallel in multiple threads.
Use SingleThread to make your object non-thread-safe. All method calls must occur in the same thread.
| Enum Constant and Description |
|---|
MultiThread
AnyObject is thread safe, multiple calls can occur in different
threads in parallel
|
SingleThread
AnyObject is not thread safe, all method calls must occur in the same
thread
|
| Modifier and Type | Method and Description |
|---|---|
static DynamicObjectBuilder.ObjectThreadingModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DynamicObjectBuilder.ObjectThreadingModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamicObjectBuilder.ObjectThreadingModel SingleThread
public static final DynamicObjectBuilder.ObjectThreadingModel MultiThread
public static DynamicObjectBuilder.ObjectThreadingModel[] values()
for (DynamicObjectBuilder.ObjectThreadingModel c : DynamicObjectBuilder.ObjectThreadingModel.values()) System.out.println(c);
public static DynamicObjectBuilder.ObjectThreadingModel 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 © 2020. All rights reserved.