Examples of maybeGet()


Examples of ratpack.exec.Execution.maybeGet()

  @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;
      });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.