Package io.atleon.rabbitmq
Interface BodySerializer<T>
-
- Type Parameters:
T- Type to be serialized from
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
ByteArrayBodySerializer,LongBodySerializer,StringBodySerializer
public interface BodySerializer<T> extends Configurable
An interface for converting objects to RabbitMQ Message bodies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconfigure(Map<String,?> properties)SerializedBodyserialize(T data)
-
-
-
Method Detail
-
configure
default void configure(Map<String,?> properties)
- Specified by:
configurein interfaceConfigurable
-
serialize
SerializedBody serialize(T data)
-
-