public class RedisKeyspaceEvent
extends org.springframework.context.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() |
toStringpublic RedisKeyspaceEvent(byte[] key)
RedisKeyspaceEvent.key - The key that expired. Must not be null.public RedisKeyspaceEvent(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 EventObjectpublic String getChannel()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.