All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.services.routing.Router Maven / Gradle / Ivy

package io.scalecube.services.routing;

import io.scalecube.services.ServiceReference;
import io.scalecube.services.api.ServiceMessage;

import java.util.List;
import java.util.Optional;

public interface Router {

  /**
   * returns service instance if a given request message is applicable.
   */
  Optional route(ServiceMessage request);

  /**
   * returns all applicable routes.
   */
  List routes(ServiceMessage request);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy