Class EnvironmentHazelcastCache
java.lang.Object
org.qubership.atp.environments.cache.EnvironmentHazelcastCache
- All Implemented Interfaces:
org.springframework.cache.Cache
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentHazelcastCache(com.hazelcast.map.IMap<Object, Object> map, int ttl, TimeUnit timeUnit) Sprint relatedCacheimplementation for Environment. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidprotected ObjectfromStoreValue(Object value) org.springframework.cache.Cache.ValueWrapper<T> Tget system cache entity.<T> Tget system cache entity.getName()longvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) voidsetReadTimeout(long readTimeout) voidsetTimeUnit(TimeUnit timeUnit) voidsetTtl(int ttl) protected ObjecttoStoreValue(Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate
-
Constructor Details
-
Method Details
-
setTtl
public void setTtl(int ttl) -
setTimeUnit
-
getName
- Specified by:
getNamein interfaceorg.springframework.cache.Cache
-
getNativeCache
- Specified by:
getNativeCachein interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
get
get system cache entity.- Specified by:
getin interfaceorg.springframework.cache.Cache- Returns:
- system cache entity
-
get
get system cache entity.- Specified by:
getin interfaceorg.springframework.cache.Cache- Returns:
- system cache entity
-
put
- Specified by:
putin interfaceorg.springframework.cache.Cache
-
toStoreValue
-
fromStoreValue
-
evict
- Specified by:
evictin interfaceorg.springframework.cache.Cache
-
clear
public void clear()- Specified by:
clearin interfaceorg.springframework.cache.Cache
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceorg.springframework.cache.Cache
-
setReadTimeout
public void setReadTimeout(long readTimeout) -
getReadTimeout
public long getReadTimeout()
-