Class AbstractCacheDTO
java.lang.Object
eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DownloadCacheDTO, ParsingCacheDTO, ValidationCacheDTO
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorAbstractCacheDTO(AbstractCacheDTO cacheDTO) Copies the cache DTO -
Method Summary
Modifier and TypeMethodDescriptionGets the state of the cachebooleanbooleanisError()booleanbooleanbooleanbooleanvoidsetCacheState(CacheStateEnum cacheState) Sets the cache statevoidsetExceptionFirstOccurrenceTime(Date exceptionFirstOccurrenceTime) Sets the first time of the exception occurrencevoidsetExceptionLastOccurrenceTime(Date exceptionLastOccurrenceTime) Sets the last time of a the exception occurrencevoidsetExceptionMessage(String exceptionMessage) Sets the exception messagevoidsetExceptionStackTrace(String exceptionStackTrace) Sets the exception stack tracevoidsetLastStateTransitionTime(Date lastStateTransitionTime) Sets the last time of the state changevoidsetLastSuccessSynchronizationTime(Date lastSuccessSynchronizationTime) Sets the last time of a successful synchronizationvoidsetResultExist(boolean resultExist) Sets if the cache result exists
-
Constructor Details
-
AbstractCacheDTO
public AbstractCacheDTO()Empty constructor -
AbstractCacheDTO
Copies the cache DTO- Parameters:
cacheDTO-AbstractCacheDTOto copy
-
-
Method Details
-
getCacheState
-
setCacheState
Sets the cache state- Parameters:
cacheState-CacheStateEnum
-
getLastStateTransitionTime
-
setLastStateTransitionTime
-
getLastSuccessSynchronizationTime
-
setLastSuccessSynchronizationTime
-
getExceptionMessage
-
setExceptionMessage
-
getExceptionStackTrace
-
setExceptionStackTrace
-
getExceptionFirstOccurrenceTime
-
setExceptionFirstOccurrenceTime
-
getExceptionLastOccurrenceTime
-
setExceptionLastOccurrenceTime
-
isResultExist
public boolean isResultExist() -
setResultExist
public void setResultExist(boolean resultExist) Sets if the cache result exists- Parameters:
resultExist- if the cache result exists
-
isRefreshNeeded
public boolean isRefreshNeeded() -
isDesynchronized
public boolean isDesynchronized() -
isSynchronized
public boolean isSynchronized() -
isError
public boolean isError() -
isToBeDeleted
public boolean isToBeDeleted() -
getStatusName
-