M
- The type of the event message this converter will convert.public interface DeadLetterJpaConverter<M extends EventMessage<?>>
EventMessage
to a DeadLetterEventEntry
and vice versa.Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(DeadLetterEventEntry message)
Check whether this converter supports the given
DeadLetterEventEntry . |
boolean |
canConvert(M message)
Check whether this converter supports the given
EventMessage . |
M |
convert(DeadLetterEventEntry entry,
Serializer eventSerializer,
Serializer genericSerializer)
Converts a
DeadLetterEventEntry to a EventMessage implementation. |
DeadLetterEventEntry |
convert(M message,
Serializer eventSerializer,
Serializer genericSerializer)
Converts an
EventMessage implementation to a DeadLetterEventEntry . |
DeadLetterEventEntry convert(M message, Serializer eventSerializer, Serializer genericSerializer)
EventMessage
implementation to a DeadLetterEventEntry
.message
- The message to convert.eventSerializer
- The Serializer
for serialization of payload and metadata.genericSerializer
- The Serializer
for serialization of the token, if present.DeadLetterEventEntry
M convert(DeadLetterEventEntry entry, Serializer eventSerializer, Serializer genericSerializer)
DeadLetterEventEntry
to a EventMessage
implementation.entry
- The database entry to convert to a EventMessage
eventSerializer
- The Serializer
for deserialization of payload and metadata.genericSerializer
- The Serializer
for deserialization of the token, if present.DeadLetterEventEntry
boolean canConvert(DeadLetterEventEntry message)
DeadLetterEventEntry
.message
- The message to check support for.boolean canConvert(M message)
EventMessage
.message
- The message to check support for.Copyright © 2010–2023. All rights reserved.