Package | Description |
---|---|
io.klerch.alexa.state.handler | |
io.klerch.alexa.state.model | |
io.klerch.alexa.state.utils |
Modifier and Type | Class and Description |
---|---|
class |
AlexaSessionStateHandler
As this handler works in the session scope it persists all models to the attributes of an associate Alexa Session object.
|
class |
AWSDynamoStateHandler
As this handler works in the user and application scope it persists all models to a AWS DynamoDB table.
|
class |
AWSIotStateHandler
As this handler works in the user and application scope it persists all models to a thing shadow in AWS IoT.
|
class |
AWSS3StateHandler
As this handler works in the user and application scope it persists all models to an S3 bucket.
|
Modifier and Type | Method and Description |
---|---|
AlexaStateHandler |
AlexaSessionStateHandler.withUserId(String userId)
sets the userId used as a key when storing user-scoped model-state
If no userId is provided the handler will use userId coming in with the session
Note, the userId from Alexa will change when a user re-enables your skill
|
Modifier and Type | Method and Description |
---|---|
AlexaStateHandler |
AlexaStateModel.getHandler()
Gets the AlexaStateHandler which takes care of this model when it
AlexaStateModel.saveState() , AlexaStateModel.removeState() . |
Modifier and Type | Method and Description |
---|---|
static <TModel extends AlexaStateModel> |
AlexaStateModelFactory.createModel(Class<TModel> modelClass,
AlexaStateHandler handler)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
static <TModel extends AlexaStateModel> |
AlexaStateModelFactory.createModel(Class<TModel> modelClass,
AlexaStateHandler handler,
String id)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
void |
AlexaStateModel.setHandler(AlexaStateHandler handler)
Sets the AlexaStateHandler which takes care of this model when it
AlexaStateModel.saveState() , AlexaStateModel.removeState() . |
AlexaStateModel |
AlexaStateModel.withHandler(AlexaStateHandler handler)
Sets the AlexaStateHandler which takes care of this model when it
AlexaStateModel.saveState() , AlexaStateModel.removeState() . |
Modifier and Type | Method and Description |
---|---|
AlexaStateHandler |
AlexaStateException.getHandler() |
Modifier and Type | Method and Description |
---|---|
AlexaStateException.AlexaStateExceptionBuilder |
AlexaStateException.AlexaStateExceptionBuilder.withHandler(AlexaStateHandler handler) |
Copyright © 2017. All rights reserved.