|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.expirables.ExpirableReferences
public class ExpirableReferences
Method Summary | ||
---|---|---|
static
|
expirable(com.google.common.base.Supplier<T> supplier,
BambooTimeValue timeToIdle,
ExpiryTicker expiryTicker)
Returns a $ ResettableLazyReference . |
|
static
|
expirableWithClose(com.google.common.base.Supplier<T> supplier,
BambooTimeValue timeToIdle,
ExpiryTicker expiryTicker)
Returns a $ that will automatically close() the referenced object when it's expired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> com.atlassian.util.concurrent.ResettableLazyReference<T> expirable(@NotNull com.google.common.base.Supplier<T> supplier, @NotNull BambooTimeValue timeToIdle, @NotNull ExpiryTicker expiryTicker)
ResettableLazyReference
. The reference will support expiry if expiryTicker is not null. Otherwise
it will be a plain resettable reference.
public static <T extends java.io.Closeable> com.atlassian.util.concurrent.ResettableLazyReference<T> expirableWithClose(@NotNull com.google.common.base.Supplier<T> supplier, @NotNull BambooTimeValue timeToIdle, @NotNull ExpiryTicker expiryTicker)
that will automatically close() the referenced object when it's expired
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |