public final class ExpiryHandlerImpl extends Object implements ExpiryHandler
Constructor and Description |
---|
ExpiryHandlerImpl(@NotNull Expirable expiring,
@NotNull BambooTimeValue timeToIdle,
@NotNull ExpiryTicker expiryTicker)
Deprecated.
since 6.3 use the
Duration variant instead |
ExpiryHandlerImpl(@NotNull Expirable expiring,
@NotNull Duration timeToIdle,
@NotNull ExpiryTicker expiryTicker) |
Modifier and Type | Method and Description |
---|---|
long |
expiryTick()
Called periodically by
ExpiryTicker . |
void |
onCreate()
Called when an expirable object is created/recreated.
|
void |
onUse()
Called when an expirable object is used.
|
@Deprecated public ExpiryHandlerImpl(@NotNull @NotNull Expirable expiring, @NotNull @NotNull BambooTimeValue timeToIdle, @NotNull @NotNull ExpiryTicker expiryTicker)
Duration
variant insteadpublic ExpiryHandlerImpl(@NotNull @NotNull Expirable expiring, @NotNull @NotNull Duration timeToIdle, @NotNull @NotNull ExpiryTicker expiryTicker)
public void onCreate()
ExpiryHandler
onCreate
in interface ExpiryHandler
public void onUse()
ExpiryHandler
onUse
in interface ExpiryHandler
public long expiryTick()
ExpiryHandler
ExpiryTicker
. Should be used to expire the object if it's too old.expiryTick
in interface ExpiryHandler
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.