/** * Get the {@link NonstopTimeoutBehaviorFactory} according to the active config * * @return the nonstopTimeoutBehaviorFactory */ public NonstopTimeoutBehaviorFactory getNonstopTimeoutBehaviorFactory() { switch (type) { case EXCEPTION: case NOOP: case LOCAL_READS: // no need to parse properties as not used (for now at least) return type.getTimeoutBehaviorFactory(null); case CUSTOM: return type.getTimeoutBehaviorFactory(extractProperties()); default: throw new CacheException("Unknown timeout behavior type - " + type); } }