public class EagerlyPopulateCacheBehaviour extends BotBehaviour
activeListeners, context, coordinationBehaviours, name| Constructor and Description |
|---|
EagerlyPopulateCacheBehaviour(EventListenerContext context) |
EagerlyPopulateCacheBehaviour(EventListenerContext context,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onActivate(java.util.Optional<java.lang.Object> message)
Activates the behaviour by registering listeners, if you addListeners with the subscribeWithAutoCleanup method, you
do not have to clean them within the onCleanup method.
|
protected void |
onCleanup()
Deactivates the behaviour.
|
activate, activate, deactivate, deactivate, getName, isActive, onActivateActivate, onActivateDeactivate, onDeactivateActivate, onDeactivateDeactivate, subscribeWithAutoCleanuppublic EagerlyPopulateCacheBehaviour(EventListenerContext context)
public EagerlyPopulateCacheBehaviour(EventListenerContext context, java.lang.String name)
protected void onActivate(java.util.Optional<java.lang.Object> message)
BotBehaviouronActivate in class BotBehaviourprotected void onCleanup()
BotBehaviouronCleanup in class BotBehaviourCopyright © 2018. All Rights Reserved.