@Override @VisibleForTesting public void validate() { super.validate(); Preconditions.checkNotNull(table, "Actual table is required."); if (cache == null) { Preconditions.checkNotNull(readTtl, "readTtl must be specified."); } else { Preconditions.checkArgument(readTtl == null && writeTtl == null && cacheSize == 0, "Invalid to specify both {cache} and {readTtl|writeTtl|cacheSize} at the same time."); } } }
@Override @VisibleForTesting public void validate() { super.validate(); Preconditions.checkNotNull(table, "Actual table is required."); if (cache == null) { Preconditions.checkNotNull(readTtl, "readTtl must be specified."); } else { Preconditions.checkArgument(readTtl == null && writeTtl == null && cacheSize == 0, "Invalid to specify both {cache} and {readTtl|writeTtl|cacheSize} at the same time."); } } }
@Override @VisibleForTesting public void validate() { super.validate(); Preconditions.checkNotNull(table, "Actual table is required."); if (cache == null) { Preconditions.checkNotNull(readTtl, "readTtl must be specified."); } else { Preconditions.checkArgument(readTtl == null && writeTtl == null && cacheSize == 0, "Invalid to specify both {cache} and {readTtl|writeTtl|cacheSize} at the same time."); } } }
@Override @VisibleForTesting public void validate() { super.validate(); Preconditions.checkNotNull(table, "Actual table is required."); if (cache == null) { Preconditions.checkNotNull(readTtl, "readTtl must be specified."); } else { Preconditions.checkArgument(readTtl == null && writeTtl == null && cacheSize == 0, "Invalid to specify both {cache} and {readTtl|writeTtl|cacheSize} at the same time."); } } }