Class CoverityConnectDataCache<T>
- java.lang.Object
-
- com.synopsys.integration.jenkins.coverity.extensions.utils.CoverityConnectDataCache<T>
-
- Direct Known Subclasses:
IssueViewCache
,ProjectStreamCache
public abstract class CoverityConnectDataCache<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
CACHE_TIME_IN_MINUTES
protected com.synopsys.integration.log.IntLogger
logger
-
Constructor Summary
Constructors Constructor Description CoverityConnectDataCache(com.synopsys.integration.log.IntLogger logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
getData(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId)
protected abstract T
getEmptyData()
protected abstract T
getFreshData(com.synopsys.integration.coverity.ws.WebServiceFactory webServiceFactory)
void
refresh(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId)
void
refreshIfStale(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId)
-
-
-
Field Detail
-
CACHE_TIME_IN_MINUTES
public static final int CACHE_TIME_IN_MINUTES
- See Also:
- Constant Field Values
-
logger
protected final com.synopsys.integration.log.IntLogger logger
-
-
Method Detail
-
getData
public T getData(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
refreshIfStale
public void refreshIfStale(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
refresh
public void refresh(CoverityConnectInstance coverityConnectInstance, java.lang.String credentialsId) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getFreshData
protected abstract T getFreshData(com.synopsys.integration.coverity.ws.WebServiceFactory webServiceFactory)
-
getEmptyData
protected abstract T getEmptyData()
-
-