T
- public class KeyValueEvent<T> extends ApplicationEvent
KeyValueEvent
gets published for operations executed by eg.
KeyValueTemplate
. Use the #getType()
to determine which event
has been emitted.Modifier and Type | Class and Description |
---|---|
static class |
KeyValueEvent.AfterDeleteEvent<T>
KeyValueEvent after removing an object by with a given key. |
static class |
KeyValueEvent.AfterDropKeySpaceEvent<T>
KeyValueEvent after removing all elements in a given keyspace. |
static class |
KeyValueEvent.AfterGetEvent<T>
KeyValueEvent after loading an object by its key. |
static class |
KeyValueEvent.AfterInsertEvent<T>
KeyValueEvent after inserting an object by with a given key. |
static class |
KeyValueEvent.AfterUpdateEvent<T>
KeyValueEvent after updating an object by with a given key. |
static class |
KeyValueEvent.BeforeDeleteEvent<T>
KeyValueEvent before removing an object by with a given key. |
static class |
KeyValueEvent.BeforeDropKeySpaceEvent<T>
KeyValueEvent before removing all elements in a given keyspace. |
static class |
KeyValueEvent.BeforeGetEvent<T>
KeyValueEvent raised before loading an object by its key. |
static class |
KeyValueEvent.BeforeInsertEvent<T>
KeyValueEvent before inserting an object by with a given key. |
static class |
KeyValueEvent.BeforeUpdateEvent<T>
KeyValueEvent before updating an object by with a given key. |
source
Modifier | Constructor and Description |
---|---|
protected |
KeyValueEvent(Object source,
String keyspace) |
getTimestamp
getSource
public String getKeyspace()
public String toString()
toString
in class EventObject
public static <T> KeyValueEvent.BeforeGetEvent<T> beforeGet(Object id, String keyspace, Class<T> type)
KeyValueEvent.BeforeGetEvent
.id
- keyspace
- type
- public static <T> KeyValueEvent.AfterGetEvent<T> afterGet(Object id, String keyspace, Class<T> type, @Nullable T value)
KeyValueEvent.AfterGetEvent
.id
- keyspace
- type
- value
- public static <T> KeyValueEvent.BeforeInsertEvent<T> beforeInsert(Object id, String keyspace, Class<? extends T> type, T value)
KeyValueEvent.BeforeInsertEvent
.id
- keyspace
- type
- value
- public static <T> KeyValueEvent.AfterInsertEvent<T> afterInsert(Object id, String keyspace, Class<? extends T> type, T value)
KeyValueEvent.AfterInsertEvent
.id
- keyspace
- type
- value
- public static <T> KeyValueEvent.BeforeUpdateEvent<T> beforeUpdate(Object id, String keyspace, Class<? extends T> type, T value)
KeyValueEvent.BeforeUpdateEvent
.id
- keyspace
- type
- value
- public static <T> KeyValueEvent.AfterUpdateEvent<T> afterUpdate(Object id, String keyspace, Class<? extends T> type, T actualValue, @Nullable Object previousValue)
KeyValueEvent.AfterUpdateEvent
.id
- keyspace
- type
- actualValue
- previousValue
- public static <T> KeyValueEvent.BeforeDropKeySpaceEvent<T> beforeDropKeySpace(String keyspace, Class<? extends T> type)
KeyValueEvent.BeforeDropKeySpaceEvent
.keyspace
- type
- public static <T> KeyValueEvent.AfterDropKeySpaceEvent<T> afterDropKeySpace(String keyspace, Class<? extends T> type)
KeyValueEvent.AfterDropKeySpaceEvent
.keyspace
- type
- public static <T> KeyValueEvent.BeforeDeleteEvent<T> beforeDelete(Object id, String keyspace, Class<? extends T> type)
KeyValueEvent.BeforeDeleteEvent
.id
- keyspace
- type
- public static <T> KeyValueEvent.AfterDeleteEvent<T> afterDelete(Object id, String keyspace, Class<? extends T> type, @Nullable T value)
KeyValueEvent.AfterDeleteEvent
.id
- keyspace
- type
- value
- Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.