public class PayPalPlusRequestContextCacheProvider extends java.lang.Object implements javax.inject.Provider<com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext>>
Modifier and Type | Class and Description |
---|---|
private static class |
PayPalPlusRequestContextCacheProvider.AccessTokenCacheLoader |
Modifier and Type | Field and Description |
---|---|
private static int |
ACCESS_TOKEN_TTL_IN_MS |
private com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext> |
cache |
private static int |
MAX_CACHE_ENTRIES |
Constructor and Description |
---|
PayPalPlusRequestContextCacheProvider(PayPalPlusAuthorizationService authorizationService) |
Modifier and Type | Method and Description |
---|---|
com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext> |
get() |
private static final int ACCESS_TOKEN_TTL_IN_MS
private static final int MAX_CACHE_ENTRIES
private final com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext> cache
@Inject public PayPalPlusRequestContextCacheProvider(PayPalPlusAuthorizationService authorizationService)
public com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext> get()
get
in interface javax.inject.Provider<com.google.common.cache.LoadingCache<PayPalPlusCredentials,PayPalPlusRequestContext>>