public abstract class AsyncAction extends Object implements Delayed
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_CHANGES_APP_SIZE |
static int |
ATTR_HALTS_APP |
static int |
ATTR_REVIEWS_APP_SIZE |
int |
attrs |
String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
AsyncAction(String name) |
protected |
AsyncAction(String name,
long delayMillis) |
protected |
AsyncAction(String name,
long delay,
TimeUnit timeUnit) |
protected |
AsyncAction(String name,
long delay,
TimeUnit timeUnit,
int attrs) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Delayed that) |
protected long |
convertAndOffset(long delay,
TimeUnit timeUnit) |
abstract void |
execute(SliderAppMaster appMaster,
QueueAccess queueService,
AppState appState)
Actual application
|
protected int |
getAttrs() |
long |
getDelay(TimeUnit unit) |
long |
getNanos() |
boolean |
hasAttr(int attr)
Ask if an action has an of the specified bits set.
|
protected long |
now()
The current time in nanos
|
void |
setNanos(long nanos) |
String |
toString() |
public final String name
public final int attrs
public static final int ATTR_CHANGES_APP_SIZE
public static final int ATTR_HALTS_APP
public static final int ATTR_REVIEWS_APP_SIZE
protected AsyncAction(String name)
protected AsyncAction(String name, long delayMillis)
protected long convertAndOffset(long delay,
TimeUnit timeUnit)
protected long now()
public int compareTo(Delayed that)
compareTo in interface Comparable<Delayed>protected int getAttrs()
public boolean hasAttr(int attr)
attr - attributepublic abstract void execute(SliderAppMaster appMaster, QueueAccess queueService, AppState appState) throws Exception
appMaster - queueService - appState - IOExceptionExceptionpublic long getNanos()
public void setNanos(long nanos)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.