Skip to content

Instantly share code, notes, and snippets.

@paulfairless
paulfairless / gist:81eb87bd5a0e1b3a6d048ee913efc79a
Created Apr 4, 2017
Specify pool for spring-cloud-aws SQS listener
View gist:81eb87bd5a0e1b3a6d048ee913efc79a
package com.endource.aws
import com.amazonaws.services.sqs.AmazonSQSAsync
import com.amazonaws.services.sqs.model.Message
import com.amazonaws.services.sqs.model.MessageAttributeValue
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.cloud.aws.messaging.config.SimpleMessageListenerContainerFactory
View data.json
{
"NumSets": 3,
"IsMatchInProgress": false,
"PlayerTeam": {
"PlayerId": "KE17",
"PlayerDisplayName": "N. Kyrgios",
"Set": [
{
"SetNumber": 0,
"ServePlacement": {
View gist:a3f4f472ea7059e4d97d
openssl base64 < <file> | tr -d '\n' | pbcopy