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

io.scalecube.services.gateway.Gateway Maven / Gradle / Ivy

package io.scalecube.services.gateway;

import io.scalecube.net.Address;
import reactor.core.publisher.Mono;

public interface Gateway {

  /**
   * Returns gateway id.
   *
   * @return gateway id
   */
  String id();

  /**
   * Returns gateway address.
   *
   * @return gateway listen address
   */
  Address address();

  /**
   * Starts the gateway.
   *
   * @return mono result
   */
  Mono start();

  /**
   * Stops the gateway.
   *
   * @return stop signal
   */
  Mono stop();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy