de.otto.synapse.translator.Encoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of synapse-core Show documentation
Show all versions of synapse-core Show documentation
A library used at otto.de to implement Spring Boot based event-sourcing microservices.
package de.otto.synapse.translator;
import de.otto.synapse.message.Message;
import de.otto.synapse.message.TextMessage;
import java.util.function.Function;
/**
* An {@code Encoder} IS-A {@code Function} that is encoding a text message into some target type,
* mostly used as an adapter to some sender-endpoint infrastructure.
*
* @param the target type of the encoder
*/
public interface Encoder extends Function, T> {
}