de.otto.synapse.annotation.MessageQueueConsumer 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.annotation;
import de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint;
import de.otto.synapse.message.Message;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MessageQueueConsumer {
String endpointName();
String keyPattern() default ".*";
/**
* The type of the {@link Message#getPayload()} produced by the {@link MessageQueueReceiverEndpoint}
*
* @return payload type
*/
Class> payloadType();
}