Class CommonContextMaps
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.queue.queues.CommonContextMaps
-
public class CommonContextMaps extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
wrap
public static CommonContextMap wrap(Map<ResultKey,CommonContextMap.ContextWithMetadata> delegate)
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.
-
-