com.atlassian.bamboo.utils
Class RecentLazyReference<T>
java.lang.Object
com.atlassian.util.concurrent.ResettableLazyReference<T>
com.atlassian.bamboo.utils.RecentLazyReference<T>
- All Implemented Interfaces:
- com.atlassian.util.concurrent.Supplier<T>
public abstract class RecentLazyReference<T>
- extends com.atlassian.util.concurrent.ResettableLazyReference<T>
Methods inherited from class com.atlassian.util.concurrent.ResettableLazyReference |
cancel, getInterruptibly, isInitialized, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecentLazyReference
public RecentLazyReference(long amount,
TimeUnit unit)
RecentLazyReference
public RecentLazyReference(RecentLazyReference.RecentPredicate recentPredicate)
setRecentPredicate
public void setRecentPredicate(long amount,
TimeUnit unit)
setRecentPredicate
public void setRecentPredicate(RecentLazyReference.RecentPredicate recentPredicate)
get
public T get()
- Specified by:
get
in interface com.atlassian.util.concurrent.Supplier<T>
- Overrides:
get
in class com.atlassian.util.concurrent.ResettableLazyReference<T>
create
protected final T create()
throws Exception
- Specified by:
create
in class com.atlassian.util.concurrent.ResettableLazyReference<T>
- Throws:
Exception
createInstance
protected abstract T createInstance()
throws Exception
- Throws:
Exception
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.