Package net.kuujo.copycat.protocol

Examples of net.kuujo.copycat.protocol.SubmitRequest


    if (currentState == null) {
      future.completeExceptionally(new CopycatException("Invalid copycat state"));
      return future;
    }

    currentState.submit(new SubmitRequest(nextCorrelationId(), operation, Arrays.asList(args))).whenComplete((response, error) -> {
      if (error != null) {
        future.completeExceptionally(error);
      } else {
        if (response.status().equals(Response.Status.OK)) {
          future.complete((R) response.result());
View Full Code Here

TOP

Related Classes of net.kuujo.copycat.protocol.SubmitRequest

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.