Skip to content

Commit

Permalink
Refactoring aws support
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jun 14, 2022
1 parent 8a5a26f commit 99972bd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
@@ -1,4 +1,4 @@
package org.ical4j.integration.sns;
package org.ical4j.integration.aws.sns;

import com.amazonaws.services.sns.AmazonSNS;
import com.amazonaws.services.sns.model.PublishRequest;
Expand Down
@@ -1,4 +1,4 @@
package org.ical4j.integration.sqs;
package org.ical4j.integration.aws.sqs;

import com.amazonaws.services.sqs.AmazonSQS;
import com.amazonaws.services.sqs.model.Message;
Expand All @@ -23,7 +23,7 @@ public CalendarSqsTransport(AmazonSQS sqs, String queueUrl) {
}

@Override
public Optional<Calendar> poll(long timeout) throws IOException {
public Optional<Calendar> receive(long timeout) throws IOException {
List<Message> messages = sqs.receiveMessage(queueUrl).getMessages();
//TODO: parse and return calendar
return Optional.empty();
Expand Down
4 changes: 0 additions & 4 deletions ical4j-integration-sns/build.gradle

This file was deleted.

4 changes: 0 additions & 4 deletions ical4j-integration-sqs/build.gradle

This file was deleted.

3 changes: 1 addition & 2 deletions settings.gradle
Expand Up @@ -5,5 +5,4 @@ include 'ical4j-integration-api'
//include 'ical4j-integration-http'
//include 'ical4j-integration-jms'
include 'ical4j-integration-mail'
//include 'ical4j-integration-sns'
//include 'ical4j-integration-sqs'
include 'ical4j-integration-aws'

0 comments on commit 99972bd

Please sign in to comment.