/** * Set the type of timeout behavior * * @param type */ public void setType(String type) { if (!TimeoutBehaviorType.isValidTimeoutBehaviorType(type)) { throw new CacheException("Invalid value for timeoutBehavior type - '" + type + "'. Valid values are: '" + TimeoutBehaviorType.EXCEPTION.getTypeName() + "', '" + TimeoutBehaviorType.NOOP.getTypeName() + "', '" + TimeoutBehaviorType.LOCAL_READS.getTypeName()); } this.type = TimeoutBehaviorType.getTimeoutBehaviorTypeFromName(type); }
/** * Set the type of timeout behavior * * @param type */ public void setType(String type) { if (!TimeoutBehaviorType.isValidTimeoutBehaviorType(type)) { throw new CacheException("Invalid value for timeoutBehavior type - '" + type + "'. Valid values are: '" + TimeoutBehaviorType.EXCEPTION.getTypeName() + "', '" + TimeoutBehaviorType.NOOP.getTypeName() + "', '" + TimeoutBehaviorType.LOCAL_READS.getTypeName()); } this.type = TimeoutBehaviorType.getTimeoutBehaviorTypeFromName(type); }
/** * Set the type of timeout behavior * * @param type */ public void setType(String type) { if (!TimeoutBehaviorType.isValidTimeoutBehaviorType(type)) { throw new CacheException("Invalid value for timeoutBehavior type - '" + type + "'. Valid values are: '" + TimeoutBehaviorType.EXCEPTION.getTypeName() + "', '" + TimeoutBehaviorType.NOOP.getTypeName() + "', '" + TimeoutBehaviorType.LOCAL_READS.getTypeName()); } this.type = TimeoutBehaviorType.getTimeoutBehaviorTypeFromName(type); }
/** * Set the type of timeout behavior * * @param type */ public void setType(String type) { if (!TimeoutBehaviorType.isValidTimeoutBehaviorType(type)) { throw new CacheException("Invalid value for timeoutBehavior type - '" + type + "'. Valid values are: '" + TimeoutBehaviorType.EXCEPTION.getTypeName() + "', '" + TimeoutBehaviorType.NOOP.getTypeName() + "', '" + TimeoutBehaviorType.LOCAL_READS.getTypeName()); } this.type = TimeoutBehaviorType.getTimeoutBehaviorTypeFromName(type); }