public class RedisKeyspaceEvent extends ApplicationEvent
ApplicationEvent published when a key expires in Redis.source| Constructor and Description |
|---|
RedisKeyspaceEvent(byte[] key)
Creates new
RedisKeyspaceEvent. |
RedisKeyspaceEvent(String channel,
byte[] key)
Creates new
RedisKeyspaceEvent. |
| Modifier and Type | Method and Description |
|---|---|
String |
getChannel() |
byte[] |
getSource() |
getTimestamptoStringpublic RedisKeyspaceEvent(byte[] key)
RedisKeyspaceEvent.key - The key that expired. Must not be null.public RedisKeyspaceEvent(@Nullable String channel, byte[] key)
RedisKeyspaceEvent.channel - The source channel aka subscription topic. Can be null.key - The key that expired. Must not be null.public byte[] getSource()
getSource in class EventObjectCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.