From bcfaaffa3751f8c7883e41c162ba4030fd9bd21a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 25 Oct 2013 01:36:27 +0000 Subject: Fixing ReplicatedRepository so that transactions may be entered when the master is unavailable as long as no changes are made to replicated storables. --- src/main/java/com/amazon/carbonado/spi/BelatedRepositoryCreator.java | 5 +++-- src/main/java/com/amazon/carbonado/spi/BelatedStorageCreator.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/spi') diff --git a/src/main/java/com/amazon/carbonado/spi/BelatedRepositoryCreator.java b/src/main/java/com/amazon/carbonado/spi/BelatedRepositoryCreator.java index e004340..30fff0c 100644 --- a/src/main/java/com/amazon/carbonado/spi/BelatedRepositoryCreator.java +++ b/src/main/java/com/amazon/carbonado/spi/BelatedRepositoryCreator.java @@ -33,6 +33,7 @@ import com.amazon.carbonado.Transaction; import com.amazon.carbonado.capability.Capability; +import com.amazon.carbonado.util.BelatedCreationException; import com.amazon.carbonado.util.BelatedCreator; /** @@ -158,8 +159,8 @@ public class BelatedRepositoryCreator extends BelatedCreator throw error(); } - private IllegalStateException error() { - return new IllegalStateException + private BelatedCreationException error() { + return new BelatedCreationException ("Creation of Storage for type \"" + mStorableType.getName() + "\" is delayed"); } } -- cgit v1.2.3