Tabnine Logo
EventBusService.getServiceProxy
Code IndexAdd Tabnine to your IDE (free)

How to use
getServiceProxy
method
in
io.vertx.reactivex.servicediscovery.types.EventBusService

Best Java code snippets using io.vertx.reactivex.servicediscovery.types.EventBusService.getServiceProxy (Showing top 3 results out of 315)

origin: cescoffier/vertx-kubernetes-workshop

  public static <T> Single<T> rxGetProxy(ServiceDiscovery discovery, Class<T> clientClass, Function<Record, Boolean>
    filter) {
    return new io.vertx.reactivex.core.impl.AsyncResultSingle<>(handler ->
      EventBusService.getServiceProxy(discovery, filter, clientClass, handler)
    );
  }
}
origin: cescoffier/vertx-kubernetes-workshop

  /**
   * Method to check the proxy requesting to convert the current portfolio to EUR.
   *
   * @param rc the routing context
   */
  private void convertPortfolioToEuro(RoutingContext rc) {
    EventBusService.getServiceProxy(discovery, svc -> svc.getName().equals("portfolio"), PortfolioService.class,
      ar -> {
        if (ar.failed()) {
          rc.fail(ar.cause());
        } else {
          ar.result().evaluate(res -> {
            if (res.failed()) {
              rc.fail(res.cause());
            } else {
              JsonObject payload = new JsonObject().put("amount", res.result()).put("currency", "EUR");
              rc.setBody(new Buffer(payload.toBuffer()));
              delegateWithCircuitBreaker(rc);
            }
          });
        }
      });
  }
}
origin: io.vertx/vertx-rx-java2

EventBusService.getServiceProxy(discovery,
 record -> record.getName().equalsIgnoreCase("my-service"),
 HelloService.class,
io.vertx.reactivex.servicediscovery.typesEventBusServicegetServiceProxy

Popular methods of EventBusService

  • createRecord

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now