Class CommonContextMaps
java.lang.Object
com.atlassian.bamboo.v2.build.queue.queues.CommonContextMaps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommonContextMap
offloadingMap
(CommonContextPersister commonContextPersister, Map<ResultKey, SoftReference<CommonContextMap.ContextWithMetadata>> delegate) The supplied commonContextPersister will be used to persist contexts stored in delegate.static CommonContextMap
wrap
(Map<ResultKey, CommonContextMap.ContextWithMetadata> delegate) Adapts supplied map to a CommonContextMap interface.
-
Method Details
-
wrap
Adapts supplied map to a CommonContextMap interface. -
offloadingMap
public static CommonContextMap offloadingMap(CommonContextPersister commonContextPersister, Map<ResultKey, SoftReference<CommonContextMap.ContextWithMetadata>> delegate) The supplied commonContextPersister will be used to persist contexts stored in delegate. When SoftReferences in the supplied delegate map get gced, the persister will be used to page them in from the persister.
-