toggle menu
river
common
switch theme
search in API
core
/
com.river.core
/
ObjectPool
/
ObjectHolder
Object
Holder
class
ObjectHolder
<
T
>
(
val
instance
:
T
,
val
maxDuration
:
Duration
,
val
createdAt
:
Instant
=
Clock.System.now()
)
Members
Constructors
Object
Holder
Link copied to clipboard
constructor
(
instance
:
T
,
maxDuration
:
Duration
,
createdAt
:
Instant
=
Clock.System.now()
)
Properties
created
At
Link copied to clipboard
val
createdAt
:
Instant
instance
Link copied to clipboard
val
instance
:
T
max
Duration
Link copied to clipboard
val
maxDuration
:
Duration
Functions
should
Be
Closed
Link copied to clipboard
fun
shouldBeClosed
(
)
:
Boolean