public static enum DispatchQueue.EnqueueResult extends Enum<DispatchQueue.EnqueueResult>
DispatchQueue.enqueue(Object, String)
.Enum Constant and Description |
---|
DEFERRED
Used to represent that the entry was queued but in such a way that it is not likely to be processed soon and
should not be tracked by the client.
|
IMMEDIATE
Used to represent that the entry was immediately queued in such a way that it is likely to be processed soon
and should be tracked by the client.
|
Modifier and Type | Method and Description |
---|---|
static DispatchQueue.EnqueueResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DispatchQueue.EnqueueResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DispatchQueue.EnqueueResult IMMEDIATE
This result indicates that if the entry gets dispatched it will be within the lifespan of the current process such that any clients tracking the entry in memory will still be valid upon dispatch.
public static final DispatchQueue.EnqueueResult DEFERRED
public static DispatchQueue.EnqueueResult[] values()
for (DispatchQueue.EnqueueResult c : DispatchQueue.EnqueueResult.values()) System.out.println(c);
public static DispatchQueue.EnqueueResult 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.