StatePropertyAccessor<T> Interface
Type Parameters
- T
type of the property.
Implements
public interface StatePropertyAccessor<T>
extends StatePropertyInfo
Interface which defines methods for how you can get data from a property source such as BotState.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract java.util.concurrent.CompletableFuture<java.lang.Void> |
delete(TurnContext turnContext)
Delete the property from the source. |
| default java.util.concurrent.CompletableFuture<T> |
get(TurnContext turnContext)
Get the property value from the source. |
| abstract java.util.concurrent.CompletableFuture<T> |
get(TurnContext turnContext, Supplier<T> defaultValueFactory)
Get the property value from the source. |
| abstract java.util.concurrent.CompletableFuture<java.lang.Void> |
set(TurnContext turnContext, T value)
Set the property value on the source. |
Method Details
delete
public abstract CompletableFuture
Delete the property from the source.
Parameters:
Returns:
get
public default CompletableFuture
Get the property value from the source.
Parameters:
Returns:
get
public abstract CompletableFuture
Get the property value from the source.
Parameters:
Returns:
set
public abstract CompletableFuture
Set the property value on the source.
Parameters:
Returns: