public class RedisKeyExpiredEvent<T> extends RedisKeyspaceEvent
RedisKeyExpiredEvent is Redis specific ApplicationEvent published when a specific key in Redis
expires. It might but must not hold the expired value itself next to the key.source| Constructor and Description |
|---|
RedisKeyExpiredEvent(byte[] key)
Creates new
RedisKeyExpiredEvent. |
RedisKeyExpiredEvent(byte[] key,
Object value)
Creates new
RedisKeyExpiredEvent |
RedisKeyExpiredEvent(String channel,
byte[] key,
Object value)
Creates new
RedisKeyExpiredEvent |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getId()
Get the expired objects id;
|
String |
getKeyspace()
Gets the keyspace in which the expiration occured.
|
Object |
getValue()
Get the expired Object
|
String |
toString() |
getChannel, getSourcegetTimestamppublic RedisKeyExpiredEvent(byte[] key)
RedisKeyExpiredEvent.key - public RedisKeyExpiredEvent(byte[] key,
@Nullable
Object value)
RedisKeyExpiredEventkey - value - public RedisKeyExpiredEvent(@Nullable String channel, byte[] key, @Nullable Object value)
RedisKeyExpiredEventkey - value - public String getKeyspace()
public byte[] getId()
public String toString()
toString in class EventObjectCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.