
entry-point.sqs.sqs-processor.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
package {{package}}.sqs.listener;
{{#lombok}}
import lombok.AllArgsConstructor;
{{/lombok}}
import org.springframework.stereotype.Service;
import software.amazon.awssdk.services.sqs.model.Message;
import java.util.function.Consumer;
@Service
{{#lombok}}
@AllArgsConstructor
{{/lombok}}
public class SQSProcessor implements Consumer {
// private final MyUseCase myUseCase;
{{^lombok}}
public SQSProcessor(/*MyUseCase myUseCase*/) {
//this.myUseCase = myUseCase;
}
{{/lombok}}
@Override
public void accept(Message message) {
System.out.println(message.body());
// myUseCase.doAny(message.body());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy