KtGram
Toggle table of contents
7.8.0
common
Platform filter
common
Switch theme
Search in API
KtGram
ktgram-botctx-redis
/
eu.vendeli.ktgram.botctx.redis.chain
/
RedisBaseStatefulLink
Redis
Base
Stateful
Link
abstract
class
RedisBaseStatefulLink
<
L
:
StatefulLink
<
IdLong
,
String
>
>
(
host
:
String
=
"localhost"
,
port
:
Int
=
6379
,
linkRef
:
KClass
<
L
>
,
serializer
:
Json
)
:
StatefulLink
<
IdLong
,
String
>
(
source
)
Members
Constructors
Redis
Base
Stateful
Link
Link copied to clipboard
constructor
(
host
:
String
=
"localhost"
,
port
:
Int
=
6379
,
linkRef
:
KClass
<
L
>
,
serializer
:
Json
)
Properties
after
Action
Link copied to clipboard
open
override
val
afterAction
:
Action
?
before
Action
Link copied to clipboard
open
override
val
beforeAction
:
Action
?
break
Condition
Link copied to clipboard
open
override
val
breakCondition
:
BreakCondition
?
chaining
Strategy
Link copied to clipboard
open
val
chainingStrategy
:
ChainingStrategy
retry
After
Break
Link copied to clipboard
open
override
val
retryAfterBreak
:
Boolean
state
Link copied to clipboard
open
override
val
state
:
LinkStateManager
<
IdLong
,
String
>
Functions
action
Link copied to clipboard
abstract
suspend
fun
action
(
user
:
User
,
update
:
ProcessedUpdate
,
bot
:
TelegramBot
)
:
String
break
Action
Link copied to clipboard
open
suspend
fun
breakAction
(
user
:
User
,
update
:
ProcessedUpdate
,
bot
:
TelegramBot
)