public final class ExpiryHandlerImpl extends Object implements ExpiryHandler
| Constructor and Description |
|---|
ExpiryHandlerImpl(Expirable expiring,
BambooTimeValue timeToIdle,
ExpiryTicker expiryTicker)
Deprecated.
since 6.3 use the
Duration variant instead |
ExpiryHandlerImpl(Expirable expiring,
Duration timeToIdle,
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 Expirable expiring, @NotNull BambooTimeValue timeToIdle, @NotNull ExpiryTicker expiryTicker)
Duration variant insteadpublic ExpiryHandlerImpl(@NotNull
Expirable expiring,
@NotNull
Duration timeToIdle,
@NotNull
ExpiryTicker expiryTicker)
public void onCreate()
ExpiryHandleronCreate in interface ExpiryHandlerpublic void onUse()
ExpiryHandleronUse in interface ExpiryHandlerpublic long expiryTick()
ExpiryHandlerExpiryTicker. Should be used to expire the object if it's too old.expiryTick in interface ExpiryHandlerCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.