BotStateSet Class
- java.
lang. Object - com.
microsoft. bot. builder. BotStateSet
- com.
public class BotStateSet
Manages a collection of botState and provides ability to load and save in parallel.
Constructor Summary
| Constructor | Description |
|---|---|
| BotStateSet(BotState[] withBotStates) |
Initializes a new instance of the Bot |
| BotStateSet(List<BotState> withBotStates) |
Initializes a new instance of the Bot |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Bot |
add(BotState botState)
Adds a bot state object to the set. |
|
java.util.List<Bot |
getBotStates()
Gets the Bot |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
loadAll(TurnContext turnContext)
Load all Bot |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
loadAll(TurnContext turnContext, boolean force)
Load all Bot |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
saveAllChanges(TurnContext turnContext)
Save All Bot |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
saveAllChanges(TurnContext turnContext, boolean force)
Save All Bot |
| void |
setBotStates(List<BotState> withBotState)
Sets the Bot |
Methods inherited from java.lang.Object
Constructor Details
BotStateSet
public BotStateSet(BotState[] withBotStates)
Initializes a new instance of the BotStateSet class.
Parameters:
BotStateSet
public BotStateSet(List
Initializes a new instance of the BotStateSet class.
Parameters:
Method Details
add
public BotStateSet add(BotState botState)
Adds a bot state object to the set.
Parameters:
Returns:
getBotStates
public List
Gets the BotStates list for the BotStateSet.
Returns:
loadAll
public CompletableFuture
Load all BotState records in parallel.
Parameters:
Returns:
loadAll
public CompletableFuture
Load all BotState records in parallel.
Parameters:
Returns:
saveAllChanges
public CompletableFuture
Save All BotState changes in parallel.
Parameters:
Returns:
saveAllChanges
public CompletableFuture
Save All BotState changes in parallel.
Parameters:
Returns:
setBotStates
public void setBotStates(List
Sets the BotStates list for the BotStateSet.
Parameters: