This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit b44bc7d93901773ad442a341cb1ba2d94848c449 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Tue Jan 7 16:48:56 2020 +0700 JAMES-2921 Propose an Hybrid blobStore --- .../main/java/org/apache/james/blob/union/HybridBlobStore.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/blob/blob-union/src/main/java/org/apache/james/blob/union/HybridBlobStore.java b/server/blob/blob-union/src/main/java/org/apache/james/blob/union/HybridBlobStore.java index 03328a0..93e1532 100644 --- a/server/blob/blob-union/src/main/java/org/apache/james/blob/union/HybridBlobStore.java +++ b/server/blob/blob-union/src/main/java/org/apache/james/blob/union/HybridBlobStore.java @@ -40,11 +40,11 @@ import reactor.core.publisher.Mono; public class HybridBlobStore implements BlobStore { @FunctionalInterface public interface RequireLowCost { - RequirePerforming lowCost(BlobStore blobStore); + RequireHighPerformance lowCost(BlobStore blobStore); } @FunctionalInterface - public interface RequirePerforming { + public interface RequireHighPerformance { RequireConfiguration highPerformance(BlobStore blobStore); } @@ -73,13 +73,13 @@ public class HybridBlobStore implements BlobStore { } public static class Configuration { - public static final int DEFAULT_SIZE_THREASHOLD = 32 * 1024; - public static final Configuration DEFAULT = new Configuration(DEFAULT_SIZE_THREASHOLD); + public static final int DEFAULT_SIZE_THRESHOLD = 32 * 1024; + public static final Configuration DEFAULT = new Configuration(DEFAULT_SIZE_THRESHOLD); private static final String PROPERTY_NAME = "hybrid.size.threshold"; public static Configuration from(org.apache.commons.configuration2.Configuration propertiesConfiguration) { return new Configuration(Optional.ofNullable(propertiesConfiguration.getInteger(PROPERTY_NAME, null)) - .orElse(DEFAULT_SIZE_THREASHOLD)); + .orElse(DEFAULT_SIZE_THRESHOLD)); } private final int sizeThreshold; --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org