public class BotTrigger
extends java.lang.Object
| Constructor and Description |
|---|
BotTrigger(EventListenerContext context,
java.time.Duration interval) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
changeIntervalByFactor(double factor) |
void |
changeIntervalByFactor(double factor,
java.time.Duration maxInterval)
Changes the interval by the specified percentage, or sets it to the specified maxInterval, whichever is smaller.
|
void |
changeIntervalTo(java.time.Duration interval)
Sets the interval to the specified duration and reschedules executions.
|
protected void |
fire() |
java.time.Duration |
getInterval() |
public BotTrigger(EventListenerContext context, java.time.Duration interval)
public void changeIntervalTo(java.time.Duration interval)
interval - public java.time.Duration getInterval()
public void changeIntervalByFactor(double factor,
java.time.Duration maxInterval)
factor - public void changeIntervalByFactor(double factor)
public void activate()
protected void fire()
Copyright © 2018. All Rights Reserved.