object Name
See Names for Java compatibility APIs.
- Alphabetic
- By Inheritance
- Name
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
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 theirid
s are.id
identifies theaddr
and not thepath
. If theid
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. -
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bound[Req, Rep](service: Service[Req, Rep]): Bound
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"
-
def
bound(addrs: Address*): Bound
Create a pre-bound address.
Create a pre-bound address.
- See also
Names.bound for Java compatibility.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
empty: Bound
An always-empty name.
An always-empty name.
- See also
Names.empty for Java compatibility.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val showable: Showable[Name]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object Bound