Package ratpack.exec

Examples of ratpack.exec.OverlappingExecutionException


        try {
          action.execute(safe);
        } catch (Throwable throwable) {
          if (!safe.fulfilled.compareAndSet(false, true)) {
            LOGGER.error("", new OverlappingExecutionException("exception thrown after promise was fulfilled", throwable));
          } else {
            f.error(throwable);
          }
        }
      });
View Full Code Here


  }

  @Override
  public void error(Throwable throwable) {
    if (!fulfilled.compareAndSet(false, true)) {
      LOGGER.error("", new OverlappingExecutionException("promise already fulfilled", throwable));
      return;
    }

    streamHandle.complete(e -> delegate.error(throwable));
  }
View Full Code Here

  }

  @Override
  public void success(T value) {
    if (!fulfilled.compareAndSet(false, true)) {
      LOGGER.error("", new OverlappingExecutionException("promise already fulfilled"));
      return;
    }

    streamHandle.complete(e -> delegate.success(value));
  }
View Full Code Here

TOP

Related Classes of ratpack.exec.OverlappingExecutionException

Copyright © 2018 www.massapicom. 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.