RECONNECT_NOT_SET
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Check if the event is empty (i.e.
|
String |
readData()
Get the original event data as
String . |
<T> T |
readData(Class<T> type)
Read event data as a given Java type.
|
<T> T |
readData(Class<T> messageType,
MediaType mediaType)
Read event data as a given Java type.
|
<T> T |
readData(GenericType<T> type)
Read event data as a given generic type.
|
<T> T |
readData(GenericType<T> type,
MediaType mediaType)
Read event data as a given generic type.
|
getComment, getId, getName, getReconnectDelay, isReconnectDelaySet
boolean isEmpty()
true
if current instance does not contain any data, false
otherwise.String readData()
String
.ProcessingException
- when provided type can't be read. The thrown exception wraps the original
cause.<T> T readData(Class<T> type)
T
- generic event data typetype
- Java type to be used for event data de-serialization.ProcessingException
- when provided type can't be read. The thrown exception wraps the original
cause.<T> T readData(GenericType<T> type)
T
- generic event data typetype
- generic type to be used for event data de-serialization.ProcessingException
- when provided type can't be read. The thrown exception wraps the original
cause.<T> T readData(Class<T> messageType, MediaType mediaType)
T
- generic event data typemessageType
- Java type to be used for event data de-serialization.mediaType
- media type
to be used for event data de-serialization.ProcessingException
- when provided type can't be read. The thrown exception wraps the original
cause.<T> T readData(GenericType<T> type, MediaType mediaType)
T
- generic event data typetype
- generic type to be used for event data de-serialization.mediaType
- media type
to be used for event data de-serialization.ProcessingException
- when provided type can't be read. The thrown exception wraps the original
cause.Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.