public final class ExpiryHandlerImpl extends Object implements ExpiryHandler
Constructor and Description |
---|
ExpiryHandlerImpl(Expirable expiring,
BambooTimeValue 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.
|
public ExpiryHandlerImpl(@NotNull Expirable expiring, @NotNull BambooTimeValue timeToIdle, @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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.