com.amazon.SellingPartnerAPIAA.LWAAccessTokenCacheImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sellingpartnerapi-aa-java Show documentation
Show all versions of sellingpartnerapi-aa-java Show documentation
A build of Amazon sellingpartnerapi-aa-java client
The newest version!
package com.amazon.SellingPartnerAPIAA;
import java.util.concurrent.ConcurrentHashMap;
public class LWAAccessTokenCacheImpl implements LWAAccessTokenCache {
//in milliseconds; to avoid returning a token that would expire before or while a request is made
private long expiryAdjustment = 60 * 1000;
private static final long SECOND_TO_MILLIS = 1000;
private ConcurrentHashMap