FC-23 Use SQS visibility timeout of 5 minutes instead of 30 seconds

SQS queues are created such that messages have a visibility timeout of 5 minutes. This gives message handlers up to 5 minutes to process each message, instead of the default 30 seconds. Existing queues are not affected.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #3 from clicktravel-steffan/master

FC-23 Use SQS visibility timeout of 5 minutes instead of 30 seconds
FC-40 Clean up SQS message handling

This is preparatory work for adding start/shutdown control later.
Removed RejectedExecutionHandler by controlling when messages are received from the queue. A semaphore is used to manage the number of messages being handled by the thread pool. Also corrected behaviour to receive up to 10 messages per SQS request, rather than 1.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #4 from clicktravel-steffan/master

FC-40 Clean up SQS message handling
FC-34 FC-40 WIP Centralised MessageListener start/shutdown control in LifecycleController

The lifecycle of all MessageListeners need to be managed according to the blue-green deployment procedure for applications. This commit establishes a new component LifecycleController for management of MessageListeners and other request handlers.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #5 from clicktravel-steffan/master

FC-34 FC-40 WIP Centralised MessageListener start/shutdown control in LifecycleController
Remove @author tags

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #6 from clicktravel-steffan/master

Remove @author tags
Fix temporary solution for handling foreign SQS messages

To allow handling of foreign SQS messages (not produced by Cheddar) add a single handler for messages of type "" (empty string). This is a temporary solution; the message listener will be generalised at a later time better decouple message listening and handling.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #7 from clicktravel-steffan/master

Fix temporary solution for handling foreign SQS messages
INV-338 When attempting to get URLs for S3 documents i found a bug in the naming convention

Although a period is supported in the bucket name it means that ssl links to the file do not work because of multi level sub domains no longer working in modern browsers.

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Had accidentally marked a value as protected whilst refactoring

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Change to structure to make InternetFileStore a separate interface

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Merge pull request #8 from clicktravel-robin/master