T - public static class KeyValueEvent.BeforeInsertEvent<T> extends KeyValueEvent<T>
KeyValueEvent before inserting an object by with a given key.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>source| Constructor and Description |
|---|
BeforeInsertEvent(Object key,
String keyspace,
Class<? extends T> type,
T payload) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey() |
T |
getPayload()
Get the value of the element the
KeyValueEvent refers to. |
Object |
getSource() |
Class<? extends T> |
getType()
Get the type of the element the
KeyValueEvent refers to. |
afterDelete, afterDropKeySpace, afterGet, afterInsert, afterUpdate, beforeDelete, beforeDropKeySpace, beforeGet, beforeInsert, beforeUpdate, getKeyspace, toStringgetTimestamp@Nullable public T getPayload()
KeyValueEvent refers to. Can be null.public Object getKey()
public Object getSource()
getSource in class EventObjectpublic Class<? extends T> getType()
KeyValueEvent refers to.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.