Class RedisKeyspaceEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.redis.core.RedisKeyspaceEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RedisKeyExpiredEvent
Redis specific
ApplicationEvent published when a key expires in Redis.- Since:
- 1.7
- Author:
- Christoph Strobl
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionRedisKeyspaceEvent(byte[] key) Creates newRedisKeyspaceEvent.RedisKeyspaceEvent(String channel, byte[] key) Creates newRedisKeyspaceEvent. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
RedisKeyspaceEvent
public RedisKeyspaceEvent(byte[] key) Creates newRedisKeyspaceEvent.- Parameters:
key- The key that expired. Must not be null.
-
RedisKeyspaceEvent
Creates newRedisKeyspaceEvent.- Parameters:
channel- The source channel aka subscription topic. Can be null.key- The key that expired. Must not be null.- Since:
- 1.8
-
-
Method Details
-
getSource
public byte[] getSource()- Overrides:
getSourcein classEventObject
-
getChannel
- Returns:
- can be null.
- Since:
- 1.8
-