avalon
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
avalon
avalon-idempotent-spring-boot-starter
/
io.github.lishangbu.avalon.idempotent.store
/
JdbcIdempotentStore
Jdbc
Idempotent
Store
class
JdbcIdempotentStore
(
jdbcTemplate
:
JdbcTemplate
,
tableName
:
String
,
clock
:
Clock
=
Clock.systemUTC()
)
:
IdempotentStore
JDBC implementation of
IdempotentStore
.
Members
Constructors
Jdbc
Idempotent
Store
Link copied to clipboard
constructor
(
jdbcTemplate
:
JdbcTemplate
,
tableName
:
String
,
clock
:
Clock
=
Clock.systemUTC()
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
acquire
Link copied to clipboard
open
override
fun
acquire
(
key
:
String
,
token
:
String
,
processingTtl
:
Duration
)
:
IdempotentStore.AcquireResult
complete
Link copied to clipboard
open
override
fun
complete
(
key
:
String
,
token
:
String
,
cachedValue
:
String
?
,
ttl
:
Duration
)
:
Boolean
release
Link copied to clipboard
open
override
fun
release
(
key
:
String
,
token
:
String
)
:
Boolean
renew
Link copied to clipboard
open
override
fun
renew
(
key
:
String
,
token
:
String
,
processingTtl
:
Duration
)
:
Boolean