public static enum DefermentWriter.DefermentStrategy extends Enum<DefermentWriter.DefermentStrategy>
| Enum Constant and Description |
|---|
DEFERRED
Uses Scheduler.get().scheduleDeferred() to push your callback into a new javascript
execution thread.
|
FINALLY
Uses Scheduler.get().scheduleFinally() to defer your callback.
|
NONE
The default deferment strategy: none.
|
TIMER
Uses new Timer().schedule() to defer callbacks; this is the more heavyweight option,
but it does ensure a completely clean stack; best used for heavyweight processes.
|
X_PROCESS
Uses X_Process.defer(), which is not yet in the public API, but handles
execution in any runtime environment.
|
| Modifier and Type | Method and Description |
|---|---|
static DefermentWriter.DefermentStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefermentWriter.DefermentStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefermentWriter.DefermentStrategy NONE
public static final DefermentWriter.DefermentStrategy FINALLY
public static final DefermentWriter.DefermentStrategy DEFERRED
public static final DefermentWriter.DefermentStrategy TIMER
public static final DefermentWriter.DefermentStrategy X_PROCESS
public static DefermentWriter.DefermentStrategy[] values()
for (DefermentWriter.DefermentStrategy c : DefermentWriter.DefermentStrategy.values()) System.out.println(c);
public static DefermentWriter.DefermentStrategy 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 © December 07, 2012–2015 The Internet Party. All rights reserved.