Class AWSQueue

java.lang.Object
com.erudika.para.server.queue.AWSQueue
All Implemented Interfaces:
Queue

@Singleton public class AWSQueue extends Object implements Queue
An implementation of the Queue interface using the AWS Simple Queue Service.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Details

    • AWSQueue

      public AWSQueue()
      No-args constructor.
    • AWSQueue

      public AWSQueue(String name)
      Default consturctor. This queue contains only messages in JSON format.
      Parameters:
      name - name of the queue
  • Method Details

    • push

      public void push(String msg)
      Specified by:
      push in interface Queue
    • pull

      public String pull()
      Specified by:
      pull in interface Queue
    • startPolling

      public void startPolling()
      Specified by:
      startPolling in interface Queue
    • stopPolling

      public void stopPolling()
      Specified by:
      stopPolling in interface Queue
    • getName

      public String getName()
      Specified by:
      getName in interface Queue
    • setName

      public void setName(String name)
      Specified by:
      setName in interface Queue
    • getUrl

      public String getUrl()
      Returns the queue URL on SQS.
      Returns:
      returns the URL of this queue