Class KeyValueEvent.AfterUpdateEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.keyvalue.core.event.KeyValueEvent<T>
org.springframework.data.keyvalue.core.event.KeyValueEvent.AfterUpdateEvent<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
- Enclosing class:
KeyValueEvent<T>
KeyValueEvent after updating an object by with a given key.- Author:
- Christoph Strobl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class KeyValueEvent
KeyValueEvent.AfterDeleteEvent<T>, KeyValueEvent.AfterDropKeySpaceEvent<T>, KeyValueEvent.AfterGetEvent<T>, KeyValueEvent.AfterInsertEvent<T>, KeyValueEvent.AfterUpdateEvent<T>, KeyValueEvent.BeforeDeleteEvent<T>, KeyValueEvent.BeforeDropKeySpaceEvent<T>, KeyValueEvent.BeforeGetEvent<T>, KeyValueEvent.BeforeInsertEvent<T>, KeyValueEvent.BeforeUpdateEvent<T> -
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Tafter()Get the current value.@Nullable Objectbefore()Get the value before update.getKey()Get the value of the element theKeyValueEventrefers to.getType()Get the type of the element theKeyValueEventrefers to.Methods inherited from class KeyValueEvent
afterDelete, afterDropKeySpace, afterGet, afterInsert, afterUpdate, beforeDelete, beforeDropKeySpace, beforeGet, beforeInsert, beforeUpdate, getKeyspace, toStringMethods inherited from class ApplicationEvent
getTimestamp
-
Constructor Details
-
AfterUpdateEvent
-
-
Method Details
-
before
-
after
-
getPayload
Get the value of the element theKeyValueEventrefers to. Can be null.- Returns:
-
getKey
-
getSource
- Overrides:
getSourcein classEventObject
-
getType
Get the type of the element theKeyValueEventrefers to.- Returns:
-