public enum EventResetMode extends Enum<EventResetMode> implements Enumeration
EventWaitHandle
is reset automatically or manually after
receiving a signal.Enum Constant and Description |
---|
AUTO_RESET
When signaled, the
EventWaitHandle resets automatically after releasing a
single thread. |
MANUAL_RESET
When signaled, the
EventWaitHandle releases all waiting threads and remains
signaled until it is manually reset. |
Modifier and Type | Method and Description |
---|---|
static EventResetMode |
getDefault()
Get the enum constant that is considered to be the default.
|
static EventResetMode |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static EventResetMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventResetMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventResetMode AUTO_RESET
EventWaitHandle
resets automatically after releasing a
single thread. If no threads are waiting, the EventWaitHandle
remains
signaled until a thread blocks, and resets after releasing the thread.public static final EventResetMode MANUAL_RESET
EventWaitHandle
releases all waiting threads and remains
signaled until it is manually reset.public static EventResetMode[] values()
for (EventResetMode c : EventResetMode.values()) System.out.println(c);
public static EventResetMode 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 nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static EventResetMode getFromValue(int value)
value
- a numeric value.@Nonnull public static EventResetMode getDefault()