public abstract class Action<T extends Action> extends ObjectWithJsonToString
Modifier and Type | Class and Description |
---|---|
static class |
Action.Direction |
static class |
Action.Type |
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Delay |
getDelay() |
abstract Action.Type |
getType() |
T |
withDelay(Delay delay)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
T |
withDelay(TimeUnit timeUnit,
long value)
The delay before responding with this request as a Delay object, for example new Delay(TimeUnit.SECONDS, 3)
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public T withDelay(Delay delay)
delay
- a Delay object, for example new Delay(TimeUnit.SECONDS, 3)public T withDelay(TimeUnit timeUnit, long value)
timeUnit
- a the time unit, for example TimeUnit.SECONDSvalue
- a the number of time units to delay the responsepublic Delay getDelay()
public abstract Action.Type getType()
Copyright © 2020. All rights reserved.