com.atlassian.bamboo.plugins.git
Class CallableResultCache<T>

java.lang.Object
  extended by com.atlassian.bamboo.plugins.git.CallableResultCache<T>

public class CallableResultCache<T>
extends java.lang.Object


Nested Class Summary
static class CallableResultCache.CachedOperationId<T>
           
 
Constructor Summary
CallableResultCache(com.google.common.cache.Cache<CallableResultCache.CachedOperationId<T>,T> cache)
           
 
Method Summary
static
<T> CallableResultCache<T>
build(com.google.common.cache.CacheBuilder<java.lang.Object,java.lang.Object> builder)
           
 T call(java.util.concurrent.Callable<T> callable, java.lang.Object... keys)
           
 com.google.common.cache.CacheStats stats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallableResultCache

public CallableResultCache(com.google.common.cache.Cache<CallableResultCache.CachedOperationId<T>,T> cache)
Method Detail

build

public static <T> CallableResultCache<T> build(@NotNull
                                               com.google.common.cache.CacheBuilder<java.lang.Object,java.lang.Object> builder)

stats

public com.google.common.cache.CacheStats stats()

call

public T call(@NotNull
              java.util.concurrent.Callable<T> callable,
              java.lang.Object... keys)


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.