Packages

abstract class ServiceDiscovery extends AnyRef

Implement to provide a service discovery method

Source
ServiceDiscovery.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServiceDiscovery
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServiceDiscovery()

Abstract Value Members

  1. abstract def lookup(lookup: Lookup, resolveTimeout: FiniteDuration): Future[Resolved]

    Scala API: Perform lookup using underlying discovery implementation.

    Scala API: Perform lookup using underlying discovery implementation.

    lookup

    A service discovery lookup.

    resolveTimeout

    Timeout. Up to the discovery-method to adhere to his

Concrete Value Members

  1. def lookup(serviceName: String, resolveTimeout: Duration): CompletionStage[Resolved]

    Java API

    Java API

    serviceName

    A name, see discovery-method's docs for how this is interpreted

    resolveTimeout

    Timeout. Up to the discovery-methodto adhere to his

  2. def lookup(query: Lookup, resolveTimeout: Duration): CompletionStage[Resolved]

    Java API: Perform basic lookup using underlying discovery implementation.

    Java API: Perform basic lookup using underlying discovery implementation.

    While the implementation may provide other settings and ways to configure timeouts, the passed resolveTimeout should never be exceeded, as it signals the application's eagerness to wait for a result for this specific lookup.

    The returned future SHOULD be failed once resolveTimeout has passed.

  3. def lookup(serviceName: String, resolveTimeout: FiniteDuration): Future[Resolved]

    Scala API: Perform lookup using underlying discovery implementation.

    Scala API: Perform lookup using underlying discovery implementation.

    Convenience for when only a name is required.