Class UserInfoCache
- All Implemented Interfaces:
Serializable
,org.hibernate.event.spi.PostUpdateEventListener
@Component
@EntityEventListener("post-commit-update")
public class UserInfoCache
extends com.google.common.cache.CacheLoader<String,UserInfo>
implements org.hibernate.event.spi.PostUpdateEventListener
Cache użytkowników na potrzeby kontekstu użytkownika.
- Author:
- Cezary Kozar 9 sie 2016
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clearAll()
static UserInfoCache
get()
void
onPostUpdate
(org.hibernate.event.spi.PostUpdateEvent event) boolean
requiresPostCommitHanding
(org.hibernate.persister.entity.EntityPersister entityPersister) default boolean
requiresPostCommitHandling
(org.hibernate.persister.entity.EntityPersister arg0) Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Constructor Details
-
UserInfoCache
public UserInfoCache()
-
-
Method Details
-
get
-
get
-
clear
-
clearAll
public void clearAll() -
load
-
onPostUpdate
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event) - Specified by:
onPostUpdate
in interfaceorg.hibernate.event.spi.PostUpdateEventListener
-
requiresPostCommitHanding
public boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister entityPersister) -
requiresPostCommitHandling
default boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
-