Packages

object Name

See Names for Java compatibility APIs.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Name
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Bound extends Name with Proxy with ForClass

    Bound names comprise a changeable Addr which carries a host list of internet addresses.

    Bound names comprise a changeable Addr which carries a host list of internet addresses.

    Equality of two Names is delegated to id. Two Bound instances are equal whenever their ids are. id identifies the addr and not the path. If the id is a Name.Path, it should only contain *bound*--not residual--path components.

    The path contains unbound residual path components that were not processed during name resolution.

  2. case class Path(path: finagle.Path) extends Name with ForCaseClass with Product with Serializable

    Path names comprise a Path denoting a network location.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(path: String): Name

    Create a path-based Name which is interpreted vis-à-vis the current request-local delegation table.

    Create a path-based Name which is interpreted vis-à-vis the current request-local delegation table.

    See also

    Names.fromPath for Java compatibility.

  5. def apply(path: finagle.Path): Name

    Create a path-based Name which is interpreted vis-à-vis the current request-local delegation table.

    Create a path-based Name which is interpreted vis-à-vis the current request-local delegation table.

    See also

    Names.fromPath for Java compatibility.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bound[Req, Rep](service: Service[Req, Rep]): Bound

    Create a pre-bound Address which points directly to the provided Service.

    Create a pre-bound Address which points directly to the provided Service.

    Note

    This method can be extremely useful in testing the functionality of a Finagle client without involving the network.

    import com.twitter.conversions.DurationOps._
    import com.twitter.finagle.{Http, Name, Service}
    import com.twitter.finagle.http.{Request, Response, Status}
    import com.twitter.util.{Await, Future}
    
    val service: Service[Request, Response] = Service.mk { request =>
      val response = Response()
      response.status = Status.Ok
      response.contentString = "Hello"
      Future.value(response)
    }
    val name = Name.bound(service)
    val client = Http.client.newService(name, "hello-service-example")
    val result = Await.result(client(Request("/")), 1.second)
    result.contentString // "Hello"
  8. def bound(addrs: Address*): Bound

    Create a pre-bound address.

    Create a pre-bound address.

    See also

    Names.bound for Java compatibility.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. val empty: Bound

    An always-empty name.

    An always-empty name.

    See also

    Names.empty for Java compatibility.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromGroup(g: Group[SocketAddress]): Bound

    Create a name from a group.

    Create a name from a group.

    Note

    Full Addr semantics cannot be recovered from Group. We take a conservative approach here: we will only provide bound and failed addresses. Empty sets could indicate either pending or negative resolutions. A failed address is only returned if the Group contains a SocketAddress that is not an InetSocketAddress.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. implicit val showable: Showable[Name]
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. object Bound

Inherited from AnyRef

Inherited from Any

Ungrouped