FC-82 Allow retries when write to database fails due to optimistic locking

Added OptimisticLockException which is thrown if optimistic lock fails i.e. condition check on 'version' attribute is violated

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
FC-82 Updated code following review

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

FC-82 Allow retries when write to database fails due to optimistic locking
[FC-74] Implemented Domain-level feature Toggling.
Merge branch 'master' of github.com:ClickTravel/Cheddar
Renamed "context" to "namespace" for clarity and added Javadoc.
Amended Javadoc
FC-69 Replace Remote Call with @Retryable and new Continuation implementation

Remote calls used SQS to distribute execution of command and query methods, as well as enable retrying of failed commands/queries. This causes subtle issues with failure scenarios, and problems with method call or response serialisation.
Remote calls have been replaced with equivalent functionality that does not use messaging (SQS). This change introduces new annotations, @Retryable @DeferResult and @ContinueResult. These support retries and continuations.

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

[FC-74] Implemented Domain-level feature Toggling.
Merge branch 'master' of github.com:ClickTravel/Cheddar
FC-69 Updated following review

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

FC-69 Replace Remote Call with @Retryable and new Continuation implementation
FC-69 Add missing headers

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

FC-69 Add missing headers
[FC-77] Allow blue-green startup to be specified from "-Dblue.green.startup" param.
Updated comments to reflect the new start-up param.
Merge pull request #31 from clicktravel-basharat/master

[FC-77] Allow blue-green startup to be specified from "-Dblue.green.startup" param.
Merge branch 'master' of github.com:ClickTravel/Cheddar