public final class KafkaEvent extends ObjectEvent
Title: Structured Data Objects: Kafka Event
Description: Defines a Kafka Event.
Copyright: Copyright (c) 2018
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOPIC_NAME_PROPERTY |
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Object |
getKey()
Returns the key.
|
java.lang.String |
getTopicName()
Returns a value of the
topicName property. |
java.lang.Object |
getValue()
Returns the value.
|
void |
setKey(java.lang.Object newKey)
Sets the key.
|
void |
setTopicName(java.lang.String topicName)
Sets the specified value of the
topicName property. |
void |
setValue(java.lang.Object newValue)
Sets the value.
|
checkPayloadClass, getPayloadClass, matchesPayloadClass
addAnnotation, clearEventProperties, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, clone, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getDurable, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventGroupId, getEventId, getEventIntProperty, getEventKey, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventSource, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTimestamp, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, hasSuitableAnnotationType, isProtected
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnnotation, canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp
getSerialVersionUID
public static final java.lang.String TOPIC_NAME_PROPERTY
public java.lang.String getTopicName()
topicName
property.topicName
.public void setTopicName(java.lang.String topicName)
topicName
property.topicName
- the value to be set.public java.lang.Object getKey() throws SecurityViolationException, SDOException
For the event instance that is processed by an event listener, this method clones the data (for first time) before returning.
This is necessary to avoid changing the initial event instance (since there is no guarantee that user won't change a returned data).
In that case if the user wants to avoid overhead of data cloning he should inherit a data class from
CloneableDataObject
and override the method CloneableDataObject.clone()
if needed.
If the data class is not inherited from CloneableDataObject
the event data will be cloned
using 'serialization/deserialization' idiom.
SecurityViolationException
- if the event is protected from read access.SDOException
- if some internal error occurs.public void setKey(java.lang.Object newKey) throws SecurityViolationException
newKey
- the key to be set.SDORuntimeException
- if the event is coalesced (locked for editing).SecurityViolationException
- if the event is protected from write access.public java.lang.Object getValue() throws SecurityViolationException, SDOException
For the event instance that is processed by an event listener, this method clones the data (for first time) before returning.
This is necessary to avoid changing the initial event instance (since there is no guarantee that user won't change a returned data).
In that case if the user wants to avoid overhead of data cloning he should inherit a data class from
CloneableDataObject
and override the method CloneableDataObject.clone()
if needed.
If the data class is not inherited from CloneableDataObject
the event data will be cloned
using 'serialization/deserialization' idiom.
SecurityViolationException
- if the event is protected from read access.SDOException
- if some internal error occurs.public void setValue(java.lang.Object newValue) throws SDOException, SecurityViolationException
newValue
- the value to be set.SDORuntimeException
- if the event is coalesced (locked for editing).SDOException
- if the specified newImage
is null
or
if the specified data has wrong type.SecurityViolationException
- if the event is protected from write access.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.