Class AccountAutoEnableListener
java.lang.Object
org.springframework.data.redis.listener.KeyspaceEventMessageListener
org.springframework.data.redis.listener.KeyExpirationEventMessageListener
cn.herodotus.engine.oauth2.management.compliance.listener.AccountAutoEnableListener
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationEventPublisherAware,org.springframework.data.redis.connection.MessageListener
public class AccountAutoEnableListener
extends org.springframework.data.redis.listener.KeyExpirationEventMessageListener
Description: 账户锁定状态监听
- Author:
- : gengwei.zheng
- Date:
- : 2022/7/8 11:11
-
Constructor Summary
ConstructorsConstructorDescriptionAccountAutoEnableListener(org.springframework.data.redis.listener.RedisMessageListenerContainer listenerContainer, OAuth2AccountStatusManager accountStatusManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidonMessage(org.springframework.data.redis.connection.Message message, byte[] pattern) Methods inherited from class org.springframework.data.redis.listener.KeyExpirationEventMessageListener
doHandleMessage, doRegister, publishEvent, setApplicationEventPublisherMethods inherited from class org.springframework.data.redis.listener.KeyspaceEventMessageListener
afterPropertiesSet, destroy, init, setKeyspaceNotificationsConfigParameter
-
Constructor Details
-
AccountAutoEnableListener
public AccountAutoEnableListener(org.springframework.data.redis.listener.RedisMessageListenerContainer listenerContainer, OAuth2AccountStatusManager accountStatusManager)
-
-
Method Details
-
onMessage
public void onMessage(org.springframework.data.redis.connection.Message message, byte[] pattern) - Specified by:
onMessagein interfaceorg.springframework.data.redis.connection.MessageListener- Overrides:
onMessagein classorg.springframework.data.redis.listener.KeyspaceEventMessageListener
-