public enum LockType extends java.lang.Enum<LockType>
IMachine.lockMachine(org.virtualbox_6_1.ISession,org.virtualbox_6_1.LockType)
.
Interface ID: {678AAF14-2815-4C3E-B20A-E86ED0216498}Enum Constant and Description |
---|
Null
Placeholder value, do not use when obtaining a lock.
|
Shared
Request only a shared lock for remote-controlling the machine.
|
VM
Lock the machine for writing, and create objects necessary for
running a VM in this process.
|
Write
Lock the machine for writing.
|
Modifier and Type | Method and Description |
---|---|
static LockType |
fromValue(long v) |
static LockType |
fromValue(java.lang.String v) |
int |
value() |
static LockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockType Null
public static final LockType Shared
public static final LockType Write
public static final LockType VM
public static LockType[] values()
for (LockType c : LockType.values()) System.out.println(c);
public static LockType 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 nullpublic int value()
public static LockType fromValue(long v)
public static LockType fromValue(java.lang.String v)