public class ScaleAction extends Object
| Constructor and Description |
|---|
ScaleAction() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.Period |
cooldown()
Get the amount of time to wait since the last scaling action before this action occurs.
|
ScaleDirection |
direction()
Get the scale direction.
|
ScaleType |
type()
Get the type of action that should occur when the scale rule fires.
|
String |
value()
Get the number of instances that are involved in the scaling action.
|
ScaleAction |
withCooldown(org.joda.time.Period cooldown)
Set the amount of time to wait since the last scaling action before this action occurs.
|
ScaleAction |
withDirection(ScaleDirection direction)
Set the scale direction.
|
ScaleAction |
withType(ScaleType type)
Set the type of action that should occur when the scale rule fires.
|
ScaleAction |
withValue(String value)
Set the number of instances that are involved in the scaling action.
|
public ScaleDirection direction()
public ScaleAction withDirection(ScaleDirection direction)
direction - the direction value to setpublic ScaleType type()
public ScaleAction withType(ScaleType type)
type - the type value to setpublic String value()
public ScaleAction withValue(String value)
value - the value value to setpublic org.joda.time.Period cooldown()
public ScaleAction withCooldown(org.joda.time.Period cooldown)
cooldown - the cooldown value to setCopyright © 2019. All rights reserved.