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)
type
- 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)
type
- 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)
messageType
- 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)
type
- 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 © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.