/** * Delegates to the wrapped {@link HystrixRequestVariableLifecycle} * @return T with initial value or null if none. */ @Override public T initialValue() { return lifecycle.initialValue(); }
/** * Delegates to the wrapped {@link HystrixRequestVariableLifecycle} * @return T with initial value or null if none. */ @Override public T initialValue() { return lifecycle.initialValue(); }
@Override public T initialValue() { return rv.initialValue(); }
@Override public T initialValue() { return rv.initialValue(); }
@Override @SuppressWarnings("unchecked") public T get() { Execution execution = getExecution(); HystrixCommandCache commandCache = execution.maybeGet(HystrixCommandCache.class) .orElseGet(() -> { HystrixCommandCache cache = new HystrixCommandCache(); execution.add(cache); return cache; }); Object command = commandCache.get(this); if (command == null) { command = rv.initialValue(); commandCache.putIfAbsent(this, command); } return (T) command; }